You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 23, 2020. It is now read-only.
wait(timeout:2,message:'Text not entered into comments').until{@driver.find_element(id:'comments').attribute('value').eql?value}
23
+
Selenium::WebDriver::Wait.new(timeout:2,message:'Text not entered into comments').until{@driver.find_element(id:'comments').attribute('value').eql?value}
24
24
end
25
25
26
26
When(/^I click on ([^"]*)$/)do |va|
27
27
element=@driver.find_element(id:va)
28
28
raise'No link found'unlesselement.displayed?
29
29
element.click
30
-
wait.until{@driver.title.start_with?'I am another page title'}
30
+
Selenium::WebDriver::Wait.new.until{@driver.title.start_with?'I am another page title'}
31
31
end
32
32
33
33
Then(/^I am on other page$/)do
34
34
element=@driver.find_element(id:'i_am_an_id')
35
-
element.displayed?
36
35
raise"Doesn't open next page"unlesselement.text.eql?'I am another div'
0 commit comments