This repository has been archived by the owner on Jun 6, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix frame locator in Frame#attach_command
Fixes Issue 45.
- Loading branch information
Justin Ko
committed
Dec 20, 2012
1 parent
83590f5
commit e88eb5c
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# 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 | ||
browser.frame(:id, "frame_1").text_field(:name, 'senderElement').value.should == 'send_this_value' | ||
browser.frame(:id, "frame_2").text_field(:name, 'recieverElement').value.should == 'old_value' | ||
browser.frame(:id, "frame_1").button(:id, 'send').click_no_wait | ||
browser.frame(:id, "frame_2").text_field(:name, 'recieverElement').value.should == 'old_value' | ||
browser.frame(:id, "frame_2").text_field(:name => 'recieverElement', :text => 'send_this_value').wait_until_present(10).should_not raise_error(Watir::Wait::TimeoutError) | ||
end | ||
|
||
end |