Sha256: b6f3ca8b8c286f46a38656761e27326aff85883613aa4d2711e98c5f30196ac3

Contents?: true

Size: 414 Bytes

Versions: 1

Compression:

Stored size: 414 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
testgen-0.9 lib/testgen/generators/project/hooks.rb.tt