Created
July 4, 2011 14:05
-
-
Save andreastt/1063366 to your computer and use it in GitHub Desktop.
This file contains hidden or 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.opera.core.systems.example; | |
import com.opera.core.systems.OperaDriver; | |
import com.opera.core.systems.settings.OperaDriverSettings; | |
import org.openqa.selenium.By; | |
public class ManualExample { | |
public static void main(String[] args) { | |
OperaDriverSettings settings = new OperaDriverSettings(); | |
settings.setOperaBinaryLocation("/home/andreastt/gogilauncher/builds/opera-core-integration-181-buildsetid_35361-core_2_10-lingogi/profiles/release_desktop/lingogi_release_desktop"); | |
settings.setAutostart(false); | |
OperaDriver driver = new OperaDriver(settings); | |
driver.navigate().to("http://google.com/"); | |
driver.findElement(By.name("q")).sendKeys("Opera Software"); | |
driver.findElement(By.name("btnG")).click(); | |
driver.quit(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment