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.
raise'Text not entered into comments'unless@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}
25
24
end
26
25
27
26
When(/^I click on ([^"]*)$/)do |va|
28
27
element=@driver.find_element(id:va)
29
28
raise'No link found'unlesselement.displayed?
30
29
element.click
31
-
@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'}
32
31
end
33
32
34
33
Then(/^I am on other page$/)do
35
34
element=@driver.find_element(id:'i_am_an_id')
36
-
element.displayed?
37
35
raise"Doesn't open next page"unlesselement.text.eql?'I am another div'
0 commit comments