Skip to content

Instantly share code, notes, and snippets.

@testingbot
Created August 27, 2012 19:41
Show Gist options
  • Save testingbot/3491672 to your computer and use it in GitHub Desktop.
Save testingbot/3491672 to your computer and use it in GitHub Desktop.
blacklist host
caps = {
:browserName => "firefox",
:platform => "WINDOWS",
:blacklist => 'www.chegg.com'
}
urlhub = "http://key:secret@hub.testingbot.com:4444/wd/hub"
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 "http://www.chegg.com"
puts @webdriver.title
@webdriver.quit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment