We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec5ba44 commit 83bfa15Copy full SHA for 83bfa15
lib/kraken-mobile/steps/web/kraken_steps.rb
@@ -47,6 +47,20 @@
47
@driver.page_source.include?(text)
48
end
49
50
+Then(/^I click on element having css selector "(.*?)"$/) do |selector|
51
+ @driver.find_element(:css, selector).click
52
+ sleep 2
53
+end
54
+
55
+Then(
56
+ /^I select option with value "(.*?)" for dropdown with id "(.*?)"$/
57
+) do |op_value, sel_id|
58
+ drop = @driver.find_element(:id, sel_id)
59
+ choose = Selenium::WebDriver::Support::Select.new(drop)
60
+ choose.select_by(:value, op_value)
61
62
63
64
# Kraken Steps
65
Then(
66
/^I send a signal to user (\d+) containing "([^\"]*)"$/
0 commit comments