Created
July 17, 2012 09:12
-
-
Save huangzhichong/3128238 to your computer and use it in GitHub Desktop.
the demo library for cn.Bing.com home page in my Selenium-Rspec project
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
module BingHome | |
class SearchKeyInputBox < TextInput | |
def initialize | |
TextInput.new("id","sb_form_q","SearchKeyInputBox") | |
end | |
end | |
class SearchButton < Button | |
def initialize | |
Button.new("id","sb_form_go","SearchButton") | |
end | |
end | |
class LinksByName < Link | |
def initialize(parameter) | |
Link.new("xpath","//a[.='#{parameter}']","LinksByName") | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment