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
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
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
class Disappointed | |
def ಠ_ಠ | |
puts "DISAPPOINTED!!!" | |
end | |
end |
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
{ | |
"theConfigMap": { | |
"auto_start_hub": "1", | |
"default_role": "hub", | |
"node_config_files": [ | |
"node_5555.json" | |
], | |
"hub_config": {}, | |
"iedriver": { | |
"bit": "x64", |
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
{ | |
"capabilities": [ | |
{ | |
"platform": "MAC", | |
"seleniumProtocol": "WebDriver", | |
"browserName": "chrome", | |
"version": 31, | |
"maxInstances": 3 | |
}, | |
{ |
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
#!/bin/bash -e | |
# allow change to pass-in display argument | |
DISPLAY=$1 | |
: ${DISPLAY:=:1} | |
export DISPLAY | |
echo "Starting VNC server" | |
vncserver ${DISPLAY} -geometry 1280x1024 |
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
#!/bin/bash +e | |
# allow change to pass-in display argument | |
DISPLAY=$1 | |
: ${DISPLAY:=:1} | |
export DISPLAY | |
echo "=== network before $0 ===" | |
netstat -na | grep "LISTEN " | |
echo |
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
def wait_for_ajax | |
Selenium::WebDriver::Wait.new(:timeout => 60).until do | |
sleep 1 | |
@selenium.execute_script("return jQuery.active") == 0 | |
end | |
end | |
public void waitForAjax() { |
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
trs = selenium.find_elements(:css, "tr"); | |
trs.each -> tr #Storing current loop var in tr | |
tds = tr.find_elements(:css, "td"); | |
if tds[1] == "user-x" | |
trs[5].click |