Skip to content

Instantly share code, notes, and snippets.

@testingbot
Created June 7, 2012 10:21
Show Gist options
  • Save testingbot/2888055 to your computer and use it in GitHub Desktop.
Save testingbot/2888055 to your computer and use it in GitHub Desktop.
iphone
client = Selenium::WebDriver::Remote::Http::Default.new
client.timeout = 120
@webdriver = Selenium::WebDriver.for :remote,:url => urlhub , :desired_capabilities => caps, :http_client => client
@webdriver.navigate.to "https://m.xoom.com/"
wait = Selenium::WebDriver::Wait.new(:timeout => 30)
wait.until { @webdriver.find_element(:link_text => "Log In").displayed? }
element = @webdriver.find_element(:link_text => "Log In")
p element
p element.text
element.click
sleep 5
puts @webdriver.title
@webdriver.quit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment