Skip to content

Instantly share code, notes, and snippets.

View freynaud's full-sized avatar

François Reynaud freynaud

  • Element34 Solutions GmbH
  • Altendorf, Switzerland
View GitHub Profile
INFO: Launching a standalone server
01:59:39.006 INFO - Java: Sun Microsystems Inc. 19.0-b09
01:59:39.007 INFO - OS: Linux 2.6.35-28-generic-pae i386
01:59:39.026 INFO - v2.13.0, with Core v2.13.0. Built from revision unknown
01:59:39.147 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub
01:59:39.148 INFO - Version Jetty/5.1.x
01:59:39.148 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver]
01:59:39.149 INFO - Started HttpContext[/selenium-server,/selenium-server]
01:59:39.149 INFO - Started HttpContext[/,/]
01:59:39.167 INFO - Started org.openqa.jetty.jetty.servlet.ServletHandler@b8bef7
package org.openqa.grid.internal;
import static org.openqa.grid.common.RegistrationRequest.CLEAN_UP_CYCLE;
import static org.openqa.grid.common.RegistrationRequest.TIME_OUT;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
Index: ExtensionConnection.java
===================================================================
--- ExtensionConnection.java (revision 14997)
+++ ExtensionConnection.java (working copy)
@@ -31,7 +31,7 @@
*
* @throws IOException If an I/O error occurs.
*/
- void start() throws IOException;
+ void start(String ... args) throws IOException;
### Eclipse Workspace Patch 1.0
#P selenium
Index: java/client/src/org/openqa/selenium/firefox/FirefoxBinary.java
===================================================================
--- java/client/src/org/openqa/selenium/firefox/FirefoxBinary.java (revision 15836)
+++ java/client/src/org/openqa/selenium/firefox/FirefoxBinary.java (working copy)
@@ -19,8 +19,10 @@
import static java.util.concurrent.TimeUnit.SECONDS;
1)DesiredCapabilities cap = DesiredCapabilities.firefox();
cap.setCapability(FirefoxDriver.FLAGS, new String[]{"--display",":1"});
FirefoxDriver driver = new FirefoxDriver(cap);
2)DesiredCapabilities cap = DesiredCapabilities.firefox();
cap.setCapability(FirefoxDriver.FLAGS, new String[]{"--display",":1"});
WebDriver driver = new RemoteWebDriver(new URL("http://localhost:5555/wd/hub"), cap);
{
"nodes":
[
{
"name":"spine-linux0",
"vmId":"421e9d24-1526-51d5-e18d-067254301a0a",
"template":"linux"
},
{
"name":"spine-linux1",
### Eclipse Workspace Patch 1.0
#P selenium
Index: java/server/src/org/openqa/grid/web/servlet/handler/WebDriverRequestHandler.java
===================================================================
--- java/server/src/org/openqa/grid/web/servlet/handler/WebDriverRequestHandler.java (revision 15924)
+++ java/server/src/org/openqa/grid/web/servlet/handler/WebDriverRequestHandler.java (working copy)
@@ -1,139 +0,0 @@
-/*
-Copyright 2011 WebDriver committers
public class SeleniumBasedResponse extends HttpServletResponseWrapper {
private byte[] forwardedContent = null;
private final String encoding = "UTF-8";
public SeleniumBasedResponse(HttpServletResponse response) {
super(response);
}
### Eclipse Workspace Patch 1.0
#P selenium
Index: java/server/test/org/openqa/grid/internal/mock/GridHelper.java
===================================================================
--- java/server/test/org/openqa/grid/internal/mock/GridHelper.java (revision 0)
+++ java/server/test/org/openqa/grid/internal/mock/GridHelper.java (revision 0)
@@ -0,0 +1,74 @@
+package org.openqa.grid.internal.mock;
+
+import java.util.Map;
### Eclipse Workspace Patch 1.0
#P selenium
Index: java/server/test/org/openqa/grid/internal/mock/GridHelper.java
===================================================================
--- java/server/test/org/openqa/grid/internal/mock/GridHelper.java (revision 0)
+++ java/server/test/org/openqa/grid/internal/mock/GridHelper.java (revision 0)
@@ -0,0 +1,74 @@
+package org.openqa.grid.internal.mock;
+
+import java.util.Map;