Sha256: 00d930899689d5b3a6ac806277418584bfce8ccdfe76a49017f45657ec4d0cce

Contents?: true

Size: 290 Bytes

Versions: 6

Compression:

Stored size: 290 Bytes

Contents

require 'watir-webdriver'

def mock_browser_for_watir
  watir_browser = double('watir')
  allow(watir_browser).to receive(:is_a?).with(Watir::Browser).and_return(true)
  allow(watir_browser).to receive(:is_a?).with(Selenium::WebDriver::Driver).and_return(false)
  watir_browser
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
symbiont-0.10.0 spec/fixtures/mock_drivers.rb
symbiont-0.9.0 spec/fixtures/mock_drivers.rb
symbiont-0.8.0 spec/fixtures/mock_drivers.rb
symbiont-0.7.0 spec/fixtures/mock_drivers.rb
symbiont-0.6.0 spec/fixtures/mock_drivers.rb
symbiont-0.5.0 spec/fixtures/mock_drivers.rb