Created
July 17, 2012 08:59
-
-
Save huangzhichong/3128194 to your computer and use it in GitHub Desktop.
demo automation script for my Selenium-Rspec framework
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
def action | |
it "Case1_This is the test case 1" do | |
$driver.get "http://cn.bing.com/" | |
$wait.until{ BingHome::LinksByName.new("Images").should_exist rescue false} | |
BingHome::SearchKeyInputBox.new().should_exist | |
BingHome::SearchButton.new().should_exist | |
end | |
it "Case2_This is the test case 2" do | |
BingHome::SearchKeyInputBox.new().should_exist | |
BingHome::SearchButton.new().should_exist | |
sleep 3 | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment