Sha256: 016ff0f720e3600f12c2b2311c9014cd83c70591be4da12e44ef1c2fa7e470c4
Contents?: true
Size: 817 Bytes
Versions: 2
Compression:
Stored size: 817 Bytes
Contents
# encoding: utf-8 require File.expand_path("watirspec/spec_helper", File.dirname(__FILE__)) describe "Frame" do before :each do browser.goto(WatirSpec.url_for("frames.html")) end it "handles clicking elements without waiting" do expect(browser.frame(:id, "frame_1").text_field(:name, 'senderElement').value).to eq('send_this_value') expect(browser.frame(:id, "frame_2").text_field(:name, 'recieverElement').value).to eq('old_value') browser.frame(:id, "frame_1").button(:id, 'send').click_no_wait expect(browser.frame(:id, "frame_2").text_field(:name, 'recieverElement').value).to eq('old_value') expect { browser.frame(:id, "frame_2").text_field(:name => 'recieverElement', :text => 'send_this_value').wait_until_present(10) }.not_to raise_error end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
watir-classic-4.3.0 | spec/frame_spec.rb |
watir-classic-4.2.0 | spec/frame_spec.rb |