Skip to content

Instantly share code, notes, and snippets.

@huangzhichong
Created July 17, 2012 09:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save huangzhichong/3128238 to your computer and use it in GitHub Desktop.
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
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