Skip to content

Instantly share code, notes, and snippets.

<!doctype HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>title</title>
</head>
<body>
<script type="text/javascript" src="jszip.js"></script>
<script type="text/javascript" src="jszip-deflate.js"></script>
<script type="text/javascript" src="test.js"></script>
org.apache.tools.ant.BuildException: Test org.openqa.selenium.opera.OperaDriverTestSuite failed
org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java:1863:in `actOnTestResult'
org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java:814:in `execute'
org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java:776:in `execute'
org/apache/tools/ant/UnknownElement.java:291:in `execute'
sun/reflect/NativeMethodAccessorImpl.java:-2:in `invoke0'
sun/reflect/NativeMethodAccessorImpl.java:39:in `invoke'
sun/reflect/DelegatingMethodAccessorImpl.java:25:in `invoke'
java/lang/reflect/Method.java:597:in `invoke'
org/jruby/javasupport/JavaMethod.java:508:in `invokeDirectWithExceptionHandling'
import com.opera.core.systems.*;
import org.openqa.selenium.WebElement;
class Example {
public static void main(String[] args) {
OperaDriverSettings settings = new OperaDriverSettings();
settings.setAutostart(false)
OperaDriver driver = new OperaDriver(settings);
@Stuk
Stuk / opera-wrapper.sh
Created June 30, 2011 11:05
Wrapper for earlier versions of Opera
#!/bin/sh
`dirname $0`/opera
import com.opera.core.systems.*;
import com.opera.core.systems.settings.OperaDriverSettings;
import org.openqa.selenium.*;
import java.util.*;
import org.openqa.selenium.interactions.*;
class Example {
public static void main(String[] args) {
OperaDriver driver = new OperaDriver();
import com.opera.core.systems.*;
import org.openqa.selenium.*;
import org.openqa.selenium.remote.RemoteWebDriver;
import java.util.*;
import org.openqa.selenium.interactions.*;
class Example {
static RemoteWebDriver driver;
~/s/w/driver:master$ pwd
/home/stuart/src/watir/driver
~/s/w/driver:master$ mvn -f maven/pom.xml release:perform
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'release'.
[INFO] ------------------------------------------------------------------------
[INFO] Building OperaDriver
[INFO] task-segment: [release:perform] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] [release:perform {execution: default-cli}]
/**
* Known element location strategies. The returned objects have two
* methods on them, "single" and "many", for locating a single element
* or multiple elements, respectively.
*
* @private
* @const
* @type {Object.<string,bot.locators.strategy>}
*/
bot.locators.STRATEGIES_ = {
@Stuk
Stuk / gist:3106121
Created July 13, 2012 17:25
Creating a new component with Montage minit
$ ls
index.html node_modules package.json ui
$ ./node_modules/montage/tools/minit/minit component my-component MyComponent
my-component.reel created.
Template expansion successful!
$ ls ui/
main.reel my-component.reel
@Stuk
Stuk / gist:3106155
Created July 13, 2012 17:31
Creating a new application with Montage minit
$ ../montage/tools/minit/minit app hello
* Clone Montage to your app:
git clone git@github.com:Motorola-Mobility/montage.git hello/node_modules/montage
* or add it as a submodule:
cd hello
git init
git submodule add git@github.com:Motorola-Mobility/montage.git node_modules/montage
Template expansion successful!