Reputation: 45
Got stuck in capybara coding. appreciate any help on this.
I need to mouseover on source element to click on the target element link. Not finding a way to get it. need to use this in chrome browser only.
Tried the code below
source=ses.find('#source-link')
ses.driver.action.move_to(source).perform
ses.find('#child-link').click
Upvotes: 0
Views: 2041
Reputation: 49950
If what you're trying to do is hover over #source-link
and then click `#child-link' it should just be
sess.find('#source-link').hover
sess.find('#child-link').click
If that doesn't work for you then we need to know exactly what events are triggering the behavior you expect.
Upvotes: 1