0

http://www.dropmocks.com/mFuqje. In the screenshot you can see times like 12am, 1am.I have stored the times in a list and iterated one by one. For every element, I want to perform a click action towards the left(marked green in screenshot) of the target element. I am using Selenium 2.40.0 with Firefox 28.0 on Mac OS X 10.8.5. What is the best way to do this

1

You can use the ActionBuilder.

driver.action.moveToElement(element, xOffset, yOffset).click().perform()

More examples if you need them: http://selenium.googlecode.com/svn/trunk/docs/api/rb/Selenium/WebDriver/ActionBuilder.html

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.