Sha256: d04615792801d447b41584efb1f6c23f461db31b8ed4c43c60517c65841202c0

Contents?: true

Size: 521 Bytes

Versions: 1

Compression:

Stored size: 521 Bytes

Contents

require 'spec_helper'

describe "Proxy + WebDriver" do
  let(:driver)  { Selenium::WebDriver.for :firefox, :profile => profile }
  let(:proxy) { new_proxy }
  let(:profile) {
    pr = Selenium::WebDriver::Firefox::Profile.new
    pr.proxy = proxy.selenium_proxy

    pr
  }

  after { driver.quit }
  after { proxy.close }

  it "should fetch a HAR" do
    proxy.new_har "google.com"
    driver.get "http://google.com"

    har = proxy.har

    har.should be_kind_of(HAR::Archive)
    har.pages.size.should == 1
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
browsermob-proxy-0.0.1 spec/e2e/selenium_spec.rb