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
1.8.7 :024 > driver = Selenium::WebDriver.for(:remote, :url => "http://10.20.43.98:4444/wd/hub", :desired_capabilities => caps) | |
Selenium::WebDriver::Error::UnknownError: unknown error | |
from [remote server] org.openqa.selenium.remote.RemoteWebDriver(RemoteWebDriver.java):600:in `execute' | |
from [remote server] org.openqa.selenium.remote.RemoteWebDriver(RemoteWebDriver.java):241:in `startSession' | |
from [remote server] org.openqa.selenium.remote.RemoteWebDriver(RemoteWebDriver.java):226:in `startSession' | |
from [remote server] org.openqa.selenium.ie.InternetExplorerDriver(InternetExplorerDriver.java):182:in `run' | |
from [remote server] org.openqa.selenium.ie.InternetExplorerDriver(InternetExplorerDriver.java):174:in `<init>' | |
from [remote server] org.openqa.selenium.ie.InternetExplorerDriver(InternetExplorerDriver.java):150:in `<init>' | |
from [remote server] sun.reflect.NativeConstructorAccessorImpl():-2:in `newInstance0' | |
from [remote server] sun.reflect.NativeConstructorAccessorImpl():-1:in `newInstance' |
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
08:17:56.233 INFO [1] org.openqa.grid.selenium.GridLauncher - Launching a selenium grid node | |
08:17:56.908 INFO [1] org.openqa.selenium.server.SeleniumServer - Writing debug logs to failure.log | |
08:17:56.909 INFO [1] org.openqa.selenium.server.SeleniumServer - Java: Oracle Corporation 24.45-b08 | |
08:17:56.909 INFO [1] org.openqa.selenium.server.SeleniumServer - OS: Windows 7 6.1 x86 | |
08:17:56.919 INFO [1] org.openqa.selenium.server.SeleniumServer - v2.42.1, with Core v2.42.1. Built from revision 68b415a | |
08:17:57.072 INFO [1] org.openqa.selenium.server.SeleniumServer - RemoteWebDriver instances should connect to: http://127.0.0.1:5555/wd/hub | |
08:17:57.073 INFO [1] org.openqa.jetty.http.HttpServer - Version Jetty/5.1.x | |
08:17:57.075 INFO [1] org.openqa.jetty.util.Container - Started HttpContext[/selenium-server/driver,/selenium-server/driver] | |
08:17:57.076 INFO [1] org.openqa.jetty.util.Container - Started HttpContext[/selenium-server,/selenium-server] | |
08:17:57.076 INFO [1] org.openqa.jetty.util.Container - Started Htt |
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
#Setup Firefox profile to use proxy | |
profile = Selenium::WebDriver::Firefox::Profile.new | |
profile["network.proxy.type"] = 1 | |
profile["network.proxy.http"] = "127.0.0.1" | |
profile["network.proxy.http_port"] = 9001 | |
#Add urls to be exluded from Black Hole proxy | |
profile["network.proxy.no_proxies_on"] = "localhost, 127.0.0.1" |
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
require 'rubygems' | |
require 'em-proxy' | |
require 'http_parser.rb' | |
require 'uuid' | |
require 'uri' | |
Proxy.start(:host => "127.0.0.1", :port => 9001) do |conn| | |
@p = Http::Parser.new | |
@p.on_headers_complete = proc do |h| |
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
\vlc\vlc.exe screen:// :screen-fps=4 :sout=#transcode{vcodec=h264,venc=x264{profile=baseline,level=3.0,nocabac,nobframes,ref=1},deinterlace,vb=200,scale=1}:file{dst='tmp\test_result_video.mp4'} |
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
require 'rubygems' | |
require 'em-proxy' | |
require 'http_parser.rb' | |
require 'uuid' | |
require 'uri' | |
PROXY_SERVER_HOST = "127.0.0.1" | |
PROXY_SERVER_PORT = ENV['PROXY_SERVER_PORT'] || 9001 | |
output = "tmp/blocked_external_urls.log" |
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
/* | |
Copyright 2012 Selenium committers | |
Copyright 2012 Software Freedom Conservancy | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 |
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
//Change private to protected | |
protected UrlMapper getUrlMapper(String method) { | |
if ("DELETE".equals(method)) { | |
return deleteMapper; | |
} else if ("GET".equals(method)) { | |
return getMapper; | |
} else if ("POST".equals(method)) { | |
return postMapper; | |
} else { | |
throw new IllegalArgumentException("Unknown method: " + method); |
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
Notes from my talk: | |
Cucumber: | |
http://cukes.info/ | |
Rspec: | |
http://rspec.info/ | |
Find selenium here: | |
http://seleniumhq.org/ |
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
Rake::Task[ :run_browser_tests ].execute({ :browser_name => browser[:name], | |
:browser_version => browser[:version], | |
:browser_od => browser[:os] }) |