Share
Go down
adityac
Professional
Professional
Posts : 101
Join date : 2013-01-17

Command for mouse over in webdriver

on Fri Apr 26, 2013 1:02 pm
Can some one suggest me what is cmd for mouseover in web driver??
tarun3kumar
Master
Master
Posts : 186
Join date : 2012-02-14
http://seleniumtests.com

Re: Command for mouse over in webdriver

on Sat Apr 27, 2013 11:00 am
Use Action class


Last edited by tarun3kumar on Fri May 03, 2013 9:39 am; edited 1 time in total

_________________
Thanks
Tarun K
Free Selenium Training
Vishveshwar
Posts : 1
Join date : 2013-05-02

Re: Command for mouse over in webdriver

on Thu May 02, 2013 5:36 pm
Hi
WebElement share = driver.findElement(By.xpath("//"));
actions.moveToElement(share).perform();
avatar
vinayakjadhav1857
Active particpant
Active particpant
Posts : 19
Join date : 2013-04-22

Re: Command for mouse over in webdriver

on Fri May 10, 2013 11:36 am
Locatable hoverItem = (Locatable) driver.findElement(By.xpath("//"));
Mouse mouse = ((HasInputDevices) driver).getMouse();
mouse.mouseMove(hoverItem.getCoordinates());

njoy... Wink
Sponsored content

Re: Command for mouse over in webdriver

Back to top
Permissions in this forum:
You cannot reply to topics in this forum