I need click on a specific coordinates of a element with watir-webdriver. With selemium-webdriver it will be looks like:
@driver.action.move_to(element, 30, 0).click.perform
But how do it with watir?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think you will have to access the selenium-webdriver driver directly (assuming
browseris your watir-webdriver browser):To get the underlining selenium-webdriver element for a watir-webdriver element, use
wd(assumingelementis your watir-webdriver element you want to click):Putting it all together, you would do: