Sha256: 4a3ca7b92ee7e73788263fe6a350f5d17e004ce55150cda5be416514baf71030

Contents?: true

Size: 457 Bytes

Versions: 8

Compression:

Stored size: 457 Bytes

Contents

# encoding: utf-8
require File.expand_path("watirspec/spec_helper", File.dirname(__FILE__))

describe "SelectList" do
  before do
    browser.goto(WatirSpec.url_for("frames.html"))
  end

  context "#select" do
    it "selects option within frame" do
      list = browser.frame.select_list
      list.should exist
      list.should be_selected("value1")
      list.select "value2"
      list.should be_selected("value2")
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
watir-classic-4.1.0 spec/select_list_spec.rb
watir-classic-4.0.1 spec/select_list_spec.rb
watir-classic-4.0.0 spec/select_list_spec.rb
watir-classic-3.7.0 spec/select_list_spec.rb
watir-classic-3.6.0 spec/select_list_spec.rb
watir-classic-3.5.0 spec/select_list_spec.rb
watir-classic-3.4.0 spec/select_list_spec.rb
watir-classic-3.3.0 spec/select_list_spec.rb