Sha256: 8a1a65817f6f4c621fdd1abbbe53165b42a33da5cf9f9b8f3d3c7e543b9869aa

Contents?: true

Size: 426 Bytes

Versions: 18

Compression:

Stored size: 426 Bytes

Contents

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

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


After do
  @browser.close
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
testgen-0.8.8 lib/testgen/generators/project/hooks.rb.tt
testgen-0.8.7 lib/testgen/generators/project/hooks.rb.tt
testgen-0.8.6 lib/testgen/generators/project/hooks.rb.tt
testgen-0.8.5 lib/testgen/generators/project/hooks.rb.tt
testgen-0.8.4 lib/testgen/generators/project/hooks.rb.tt
testgen-0.8.3 lib/testgen/generators/project/hooks.rb.tt
testgen-0.8.2 lib/testgen/generators/project/hooks.rb.tt
testgen-0.8.1 lib/testgen/generators/project/hooks.rb.tt
testgen-0.8 lib/testgen/generators/project/hooks.rb.tt
testgen-0.7 lib/testgen/generators/project/hooks.rb.tt
testgen-0.6 lib/testgen/generators/project/hooks.rb.tt
testgen-0.5.2 lib/testgen/generators/project/hooks.rb.tt
testgen-0.5.1 lib/testgen/generators/project/hooks.rb.tt
testgen-0.5 lib/testgen/generators/project/hooks.rb.tt
testgen-0.4 lib/testgen/generators/project/hooks.rb.tt
testgen-0.3 lib/testgen/generators/project/hooks.rb.tt
testgen-0.2.4 lib/testgen/generators/project/hooks.rb.tt
testgen-0.2.3 lib/testgen/generators/project/hooks.rb.tt