Example usage for org.openqa.selenium.opera OperaOptions CAPABILITY

List of usage examples for org.openqa.selenium.opera OperaOptions CAPABILITY

Introduction

In this page you can find the example usage for org.openqa.selenium.opera OperaOptions CAPABILITY.

Prototype

String CAPABILITY

To view the source code for org.openqa.selenium.opera OperaOptions CAPABILITY.

Click Source Link

Document

Key used to store a set of OperaOptions in a org.openqa.selenium.Capabilities object.

Usage

From source file:io.github.bonigarcia.wdm.test.OperaTest.java

License:Open Source License

@Before
public void setupTest() {
    DesiredCapabilities capabilities = DesiredCapabilities.operaBlink();
    if (IS_OS_LINUX) {
        assumeTrue("no Opera installed on Linux; well ... :-)", new File("/usr/bin/opera").exists());
        OperaOptions options = new OperaOptions();
        options.setBinary(new File("/usr/bin/opera"));
        capabilities.setCapability(OperaOptions.CAPABILITY, options);
    }//  w ww . j ava  2  s  .c  o  m
    driver = new OperaDriver(capabilities);
}