Skip to content

Instantly share code, notes, and snippets.

@andreastt
Created July 4, 2011 14:05
Show Gist options
  • Save andreastt/1063366 to your computer and use it in GitHub Desktop.
Save andreastt/1063366 to your computer and use it in GitHub Desktop.
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