Skip to content

Commit

Permalink
ARQ-847: support for OperaDriver
Browse files Browse the repository at this point in the history
  • Loading branch information
papousek committed Apr 20, 2012
1 parent 95a08cc commit 3d73995
Show file tree
Hide file tree
Showing 11 changed files with 615 additions and 8 deletions.
7 changes: 6 additions & 1 deletion depchain/webdriver/pom.xml
Expand Up @@ -72,7 +72,7 @@
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-support</artifactId>
<artifactId>selenium-support</artifactId>
<version>${version.selenium}</version>
</dependency>

Expand Down Expand Up @@ -112,6 +112,11 @@
<artifactId>selenium-remote-driver</artifactId>
<version>${version.selenium}</version>
</dependency>
<dependency>
<groupId>com.opera</groupId>
<artifactId>operadriver</artifactId>
<version>${version.com.opera}</version>
</dependency>
</dependencies>

</project>
Expand Down
6 changes: 6 additions & 0 deletions drone-bom/pom.xml
Expand Up @@ -38,6 +38,7 @@
</developers>

<properties>
<version.com.opera>0.11</version.com.opera>
<version.org.seleniumhq.selenium.server>2.20.0</version.org.seleniumhq.selenium.server>
<version.org.seleniumhq.selenium>2.20.0</version.org.seleniumhq.selenium>
<jboss.releases.repo.url>https://repository.jboss.org/nexus/service/local/staging/deploy/maven2/</jboss.releases.repo.url>
Expand Down Expand Up @@ -143,6 +144,11 @@
<artifactId>selenium-remote-driver</artifactId>
<version>${version.org.seleniumhq.selenium}</version>
</dependency>
<dependency>
<groupId>com.opera</groupId>
<artifactId>operadriver</artifactId>
<version>${version.com.opera}</version>
</dependency>

<!-- Dependency Chains -->
<dependency>
Expand Down
6 changes: 6 additions & 0 deletions drone-webdriver/pom.xml
Expand Up @@ -111,6 +111,12 @@
<version>${version.selenium}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.opera</groupId>
<artifactId>operadriver</artifactId>
<version>${version.com.opera}</version>
<scope>provided</scope>
</dependency>

<!-- test dependencies -->
<dependency>
Expand Down
Expand Up @@ -26,6 +26,7 @@
import org.jboss.arquillian.drone.webdriver.factory.HtmlUnitDriverFactory;
import org.jboss.arquillian.drone.webdriver.factory.IPhoneDriverFactory;
import org.jboss.arquillian.drone.webdriver.factory.InternetExplorerDriverFactory;
import org.jboss.arquillian.drone.webdriver.factory.OperaDriverFactory;
import org.jboss.arquillian.drone.webdriver.factory.WebDriverFactory;

/**
Expand Down Expand Up @@ -64,5 +65,9 @@ public void register(ExtensionBuilder builder) {
builder.service(Configurator.class, WebDriverFactory.class);
builder.service(Instantiator.class, WebDriverFactory.class);
builder.service(Destructor.class, WebDriverFactory.class);

builder.service(Configurator.class, OperaDriverFactory.class);
builder.service(Instantiator.class, OperaDriverFactory.class);
builder.service(Destructor.class, OperaDriverFactory.class);
}
}
@@ -0,0 +1,79 @@
/*
* JBoss, Home of Professional Open Source
* Copyright 2011, Red Hat Middleware LLC, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jboss.arquillian.drone.webdriver.configuration;

/**
* @author <a href="mailto:jpapouse@redhat.com">Jan Papousek</a>
*/
public interface OperaDriverConfiguration extends CommonWebDriverConfiguration {

// getters

String getOperaArguments();

String getOperaBinary();

int getOperaDisplay();

String getOperaLauncher();

String getOperaLoggingFile();

String getOperaLoggingLevel();

int getOperaPort();

String getOperaProduct();

String getOperaProfile();

boolean isOperaAutostart();

boolean isOperaIdle();

boolean isOperaQuit();

boolean isOperaRestart();

// setters

void setOperaArguments(String operaArguments);

void setOperaBinary(String operaBinary);

void setOperaDisplay(int operaDisplay);

void setOperaLauncher(String operaLauncher);

void setOperaLoggingFile(String operaLoggingFile);

void setOperaLoggingLevel(String operaLoggingLevel);

void setOperaPort(int operaPort);

void setOperaProduct(String operaProduct);

void setOperaProfile(String operaProfile);

void setOperaAutostart(boolean operaAutostart);

void setOperaIdle(boolean operaIdle);

void setOperaQuit(boolean operaQuit);

void setOperaRestart(boolean operaRestart);
}

0 comments on commit 3d73995

Please sign in to comment.