Problems with action.move_to and action.move_by

51 views
Skip to first unread message

jnicklas

unread,
Aug 22, 2011, 6:50:00 AM8/22/11
to selenium-ruby
I'm trying to click in a specific spot, relative to an element on the
page. It seems like the action API, and especially action.move_to
would accomplish this task, but I can't get it to work. My code looks
something like this:

browser.action.move_to(element).move_by(400, 0).click.perform
browser.action.move_to(element, 400, 0).click.perform

I've tried both variations, and neither seems to work. The click event
does happen, but it is always in the same spot, the center of
`element`. Am I misinterpreting how this API works or is there
something else at play?

Thanks,

/Jonas

Reply all
Reply to author
Forward
0 new messages