Sha256: 0367c75fc97b1f080946c5e42ff5e3fbd6301787045e3d160260e7bd45fa6625
Contents?: true
Size: 1.14 KB
Versions: 2
Compression:
Stored size: 1.14 KB
Contents
Given(/^I am on web-object form page$/) do # @base_url = "https://krupani.github.io/web-object" @base_url = "file:///Users/kaushal.rupani/projects/web-object/docs/index.html" @driver.get(@base_url) end When(/^I follow ([^"]*) button$/) do |btn| wo = WebObjectFormPage.new(@driver) case btn when "delayed_alert" wo.delayed_alert_button.click when "toggle_visibility" wo.toggle_visibility_button.click when "toggle_presence" wo.toggle_presence_button.click when "toggle_enabling" wo.toggle_enability_button.click when "delayed_clickability" wo.delayed_clickability_button.click when "toggle_attribute" wo.toggle_attribute_button.click when "empty_attribute" wo.empty_attribute_button.click when "delayed_url" wo.delayed_url_button.click when "delayed_title" wo.delayed_title_button.click when "delayed_more_cells" wo.delayed_more_cells_button.click when "delayed_less_cells" wo.delayed_less_cells_button.click end end Then(/^I wait for alert to appear$/) do wait = Selenium::WebDriver::Wait.new(timeout: 10) wait.until{alert_present?} end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
web-object-0.5 | features/step_definitions/alert_steps.rb |
web-object-0.4 | features/step_definitions/alert_steps.rb |