Sha256: 7f6b94cd13b5ddfd475f41f2e4e751efa6bf012997c704ee94fa3b8e73b98fe8

Contents?: true

Size: 407 Bytes

Versions: 1

Compression:

Stored size: 407 Bytes

Contents

<% if pageobject_driver.downcase == 'watir' -%>require 'watir' <% end %>
<% if pageobject_driver.downcase == 'selenium' -%>require 'selenium-webdriver' <% end %>

Before do
<% if pageobject_driver.downcase == 'watir' -%> @browser = Watir::Browser.new :chrome <% end %>
<% if pageobject_driver.downcase == 'selenium' -%> @browser = Selenium::WebDriver.for :chrome <% end %>
end

After do
  @browser.close
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
automation_wizard-0.1.3 lib/automation_wizard/generators/project/hooks.rb.tt