Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- step 'I click button :string on the page' do |locator|
- page.driver.browser.mouse.move(x: 800, y: 600).down
- click_button(locator)
- # find_button(locator).trigger('click')
- end
- step 'I click link :string on the page' do |locator|
- page.driver.browser.mouse.move(x: 100, y: 100).click(x: 100, y: 100)
- click_link(locator)
- # find_link(locator).trigger('click')
- end
- begin
- Timeout.timeout(10) { debug }
- rescue Timeout::Error
- debugger
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement