features/step_definitions/common_steps.rb in cello-0.0.23 vs features/step_definitions/common_steps.rb in cello-0.0.25

- old
+ new

@@ -13,5 +13,20 @@ end And /^There is a checkbox checked$/ do @browser.checkbox_check end + +Given /^I am on a page that has a textfield inside a iframe$/ do + @browser.should be nil + @browser = StaticPages::Site::Phantom.new + @browser.title.should == "" + @browser.context StaticPages::Site::IframePage + @browser.title.should == "" + @browser.visit + @browser.title.should == "Iframe page" +end + +Then /^I should be able to write "(.*?)" in a element inside the iframe using id$/ do |text| + @browser.text_inside_iframe_fill_with(text) + @browser.close +end