jnicklas
unread,Aug 22, 2011, 6:50:00 AM8/22/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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