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
@Override | |
public void beforeSession(TestSession session) { | |
super.beforeSession(session); | |
// find a free display. | |
int x = getFreeDisplay(); | |
if (x == -1) { | |
log.warn(getVm().getName() + "Error routing the test"); | |
return; | |
} | |
if (session.getRequestedCapabilities().get("browserName").equals("chrome")) { |
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
package com.ebay.spine.selenium; | |
import java.io.File; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import org.openqa.selenium.WebDriverException; | |
import org.openqa.selenium.firefox.FirefoxDriver; | |
import org.openqa.selenium.firefox.FirefoxProfile; |
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
### Eclipse Workspace Patch 1.0 | |
#P selenium | |
Index: java/server/src/org/openqa/grid/common/defaults/GridDocHelper.java | |
=================================================================== | |
--- java/server/src/org/openqa/grid/common/defaults/GridDocHelper.java (revision 12660) | |
+++ java/server/src/org/openqa/grid/common/defaults/GridDocHelper.java (working copy) | |
@@ -1,71 +0,0 @@ | |
-package org.openqa.grid.common.defaults; | |
- | |
-import java.io.IOException; |
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
### Eclipse Workspace Patch 1.0 | |
#P selenium | |
Index: java/server/src/org/openqa/grid/internal/utils/SelfRegisteringRemote.java | |
=================================================================== | |
--- java/server/src/org/openqa/grid/internal/utils/SelfRegisteringRemote.java (revision 12714) | |
+++ java/server/src/org/openqa/grid/internal/utils/SelfRegisteringRemote.java (working copy) | |
@@ -167,15 +167,20 @@ | |
log.info("no registration sent ( " + AUTO_REGISTER + " = false )"); | |
} else { | |
final Integer o = (Integer) nodeConfig.getConfiguration().get(RegistrationRequest.REGISTER_CYCLE); |
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
package org.openqa.grid.e2e.selenium; | |
import java.net.URL; | |
import org.openqa.grid.common.GridRole; | |
import org.openqa.grid.e2e.utils.GridTestHelper; | |
import org.openqa.grid.e2e.utils.RegistryTestHelper; | |
import org.openqa.grid.internal.utils.GridHubConfiguration; | |
import org.openqa.grid.internal.utils.SelfRegisteringRemote; | |
import org.openqa.grid.web.Hub; |
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
Registering Override Certificate service. | |
Failed to load XPCOM component: C:\DOCUME~1\freynaud\LOCALS~1\Temp\anonymous280953083498389510webdriver-profile\extensions\[email protected]\components\dispatcher.js | |
Failed to load XPCOM component: C:\DOCUME~1\freynaud\LOCALS~1\Temp\anonymous280953083498389510webdriver-profile\extensions\[email protected]\components\firefoxDriver.js | |
Failed to load XPCOM component: C:\DOCUME~1\freynaud\LOCALS~1\Temp\anonymous280953083498389510webdriver-profile\extensions\[email protected]\components\json2.js | |
Failed to load XPCOM component: C:\DOCUME~1\freynaud\LOCALS~1\Temp\anonymous280953083498389510webdriver-profile\extensions\[email protected]\components\request.js |
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
public static void main(String[] args) { | |
FirefoxProfile p = new FirefoxProfile(); | |
p.setAssumeUntrustedCertificateIssuer(true); | |
WebDriver driver = new FirefoxDriver(p); | |
} |
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
context : | |
trying to send event to an app in the background ( safari ). | |
Started from this example : http://www.cocoabuilder.com/archive/cocoa/234233-send-click-to-window.html | |
and this | |
http://src.chromium.org/svn/trunk/src/chrome/browser/automation/ui_controls_mac.mm | |
the event generation is in | |
https://github.com/freynaud/MacOSNativeEvent/blob/master/MacOSNativeEvent/EventFactory.m | |
The glue around is to launch safari, find the PID, the windowID. |
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
@BeforeClass | |
public static void prepare() throws Exception { | |
port = 4444;// PortProber.findFreePort(); | |
RemoteControlConfiguration config = new RemoteControlConfiguration(); | |
config.setPort(port); | |
server = new SeleniumServer(config); | |
server.boot(); | |
} | |
@Test |
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": | |
[ | |
{ | |
"browserName":"firefox", | |
"maxInstances":1 | |
}, | |
{ | |
"browserName":"chrome", | |
"maxInstances":1 |