Sha256: 6dc4322155fd695519e4521f316a3f5f6352191242a297a6bbe1a19774ce1789

Contents?: true

Size: 746 Bytes

Versions: 6

Compression:

Stored size: 746 Bytes

Contents

require 'page-object'
require 'page-object/page_factory'
require 'faker'
require 'require_all'
require 'rspec-expectations'
require 'watir-webdriver'
require "watir-webdriver-performance"

World(PageObject::PageFactory)

# Global variables
$live_url          = ""
$admin_url         = ""
$default_email     = ""
$default_password  = ""

$log       = Logger.new(File.expand_path(File.dirname(File.dirname(__FILE__)))+'/logs/log.txt', 'daily')
$log.level = Logger::DEBUG

PageObject.javascript_framework = :jquery

case ENV['BROWSER']
  when 'chrome'
    browser = Watir::Browser.new :chrome
  else
  	browser = Watir::Browser.new :ff
end

Before do
  @browser = browser
  @browser.window.resize_to(1024, 768) 
end

at_exit do
  browser.close
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cwtestgen-0.1.6 lib/cwtestgen/generators/project/env.rb.tt
cwtestgen-0.1.5 lib/cwtestgen/generators/project/env.rb.tt
cwtestgen-0.1.4 lib/cwtestgen/generators/project/env.rb.tt
cwtestgen-0.1.3 lib/cwtestgen/generators/project/env.rb.tt
cwtestgen-0.1.2 lib/cwtestgen/generators/project/env.rb.tt
cwtestgen-0.1.1 lib/cwtestgen/generators/project/env.rb.tt