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
function MyUIAElementArray(elements) {
this.elements = elements;
this.length = elements.length;
this.toArray =function(){
return this.elements;
}
this.firstWithName = function(name) {
for( i = 0; i < this.elements.length; i++) {
var current = elements[i];
this._loadTree = function(uiaElement) {
this.root = this._buildNode(uiaElement);
}
this._buildNode = function(uiaElement){
var node = new Node(uiaElement);
var uiaChildren = uiaElement.elements();
var size = uiaChildren.length;
log("building"+uiaElement+'children: '+uiaChildren.length);
{
"criteria": "OrCriteria",
"criterias": [
{
"class": "UIAButton",
"criteria": "ClassCriteria"
},
{
"criteria": "NameCriteria",
"name": "test"
package com.ebay.ieapp;
import static com.ebay.support.IOSListener.getSession;
import java.io.File;
import org.testng.Reporter;
import org.testng.annotations.Listeners;
import org.testng.annotations.Test;
### 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 16072)
+++ java/client/src/org/openqa/selenium/firefox/FirefoxBinary.java (working copy)
@@ -19,8 +19,10 @@
import static java.util.concurrent.TimeUnit.SECONDS;
#!/bin/bash
VERSION="2.20.1"
cd ~/workspace/selenium
./go release
mvn install:install-file -DgroupId=org.openqa -DartifactId=selenium-server-standalone -Dversion=$VERSION -Dpackaging=jar -Dfile=/home/freynaud/workspace/selenium/build/dist/selenium-server-standalone-$VERSION.jar
scp ~/workspace/selenium/build/dist/selenium-server-standalone-$VERSION.jar [email protected]:/home/share/file/grid/selenium-server-standalone-$VERSION.jar
{
"nodes": [
{
"name": "spine-mint1",
"vmId": "421e5c0f-4e64-5611-f12f-c6c50b12c5c9",
"template": "linux"
}, {
"name": "spine-mint2",
"vmId": "421ebdad-d690-990b-a822-7d737eec19cd",
"template": "linux"
{
"templates": [
{
"name": "linux",
"request": {
"capabilities": [
{
"browserName": "firefox",
"version": "3.6",
"maxInstances": 5,
import java.io.File;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import org.ebayopensource.twin.Application;
import org.ebayopensource.twin.Criteria;
import org.ebayopensource.twin.MouseButton;
import org.ebayopensource.twin.Screenshot;
import org.ebayopensource.twin.element.Menu;
import java.io.File;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import org.ebayopensource.twin.Application;
import org.ebayopensource.twin.Screenshot;
import org.ebayopensource.twin.element.Window;
import org.openqa.selenium.OutputType;
import org.openqa.selenium.TakesScreenshot;