Slider and Dragging not working (Action class issue) | Selenium Forum
M
Posted on 17/05/2016
Unable to locate element:

Attaching the java files for reference

M
Replied on 18/05/2016

what is the error? which website are you using? and which element are you trying to locate? and if you can please upload a screen shot.


M
Replied on 18/05/2016

Same code what you thought in class , the selenium_pack zip

URL: http://jqueryui.com/draggable/
URL:http://jqueryui.com/slider/

ERROR:Unable to locate element: {"method":"xpath","selector":"//div[@id='draggable']"}


M
Replied on 18/05/2016

its inside iframe. you have to use switch to statement.


M
Replied on 19/05/2016

Thank you Solved.

Better if below files are updated:

Selenium_Pack\Selenium_Pack\Selenium_Pack\code\Module16_WebDriver_part6\src\Dragging.java
Selenium_Pack\Selenium_Pack\Selenium_Pack\code\Module16_WebDriver_part6\src\Slider.ava