Sha256: fae5aa41eeb9b312b6bb30ac51e80fe4823e05f20d3d486e282e1fb48b2c2f71
Contents?: true
Size: 552 Bytes
Versions: 3
Compression:
Stored size: 552 Bytes
Contents
require "watir-scroll" RSpec.configure do |spec| spec.before(:all) do opts = {} if ENV['TRAVIS'] Selenium::WebDriver::Chrome.path = "#{File.dirname(__FILE__)}/../bin/google-chrome" opts[:args] = ['no-sandbox'] end @browser = Watir::Browser.new(:chrome, opts) end spec.after(:all) do @browser.quit end spec.before(:each) do @browser.goto "file://#{File.dirname(__FILE__)}/support/test.html" end def visible?(el) @browser.execute_script('return isElementInViewport(arguments[0]);', el) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
watir-scroll-0.4.0 | spec/spec_helper.rb |
watir-scroll-0.3.0 | spec/spec_helper.rb |
watir-scroll-0.2.0 | spec/spec_helper.rb |