Sha256: a27a574f50578409fd8d7250bea0dd7d0ae98460e4d0f963fe31b844a848fdf5

Contents?: true

Size: 993 Bytes

Versions: 12

Compression:

Stored size: 993 Bytes

Contents

# Encoding: utf-8

require 'spec_helper'
require 'selenium_connect/configuration'
require 'selenium_connect/runners/phantomjs'
require 'selenium-webdriver'

describe 'phantomjs runner' do
  it 'should match against phantomjs if configured as such' do
    config = SeleniumConnect::Configuration.new
    config.browser = 'phantomjs'
    runner = SeleniumConnect::Runner::PhantomJS.new(config)
    runner.match?.should be_true
  end

  it 'should not match if there is a different browser specified' do
    config = SeleniumConnect::Configuration.new
    config.browser = 'chrome'
    runner = SeleniumConnect::Runner::PhantomJS.new(config)
    runner.match?.should be_false
  end

  it 'should return a browser capabilities object for the browser on launch' do
    config = SeleniumConnect::Configuration.new
    config.browser = 'phantomjs'
    runner = SeleniumConnect::Runner::PhantomJS.new(config)
    runner.launch.is_a?(Selenium::WebDriver::Remote::Capabilities).should be true
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
selenium-connect-3.7.1 spec/integration/lib/selenium_connect/runners/phantomjs_spec.rb
selenium-connect-3.7.0 spec/integration/lib/selenium_connect/runners/phantomjs_spec.rb
selenium-connect-3.6.0 spec/integration/lib/selenium_connect/runners/phantomjs_spec.rb
selenium-connect-3.5.0 spec/integration/lib/selenium_connect/runners/phantomjs_spec.rb
selenium-connect-3.4.0 spec/integration/lib/selenium_connect/runners/phantomjs_spec.rb
selenium-connect-3.3.1 spec/integration/lib/selenium_connect/runners/phantomjs_spec.rb
selenium-connect-3.3.0 spec/integration/lib/selenium_connect/runners/phantomjs_spec.rb
selenium-connect-3.2.0 spec/integration/lib/selenium_connect/runners/phantomjs_spec.rb
selenium-connect-3.1.2 spec/integration/lib/selenium_connect/runners/phantomjs_spec.rb
selenium-connect-3.1.1 spec/integration/lib/selenium_connect/runners/phantomjs_spec.rb
selenium-connect-3.1.0 spec/integration/lib/selenium_connect/runners/phantomjs_spec.rb
selenium-connect-3.0.0 spec/integration/lib/selenium_connect/runners/phantomjs_spec.rb