Java Code Examples for org.openqa.selenium.remote.DesiredCapabilities#htmlUnit()

The following examples show how to use org.openqa.selenium.remote.DesiredCapabilities#htmlUnit() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may want to check out the right sidebar which shows the related API usage.
Example 1
Source Project: carina   File:    License: Apache License 2.0 5 votes vote down vote up
public DesiredCapabilities getCapability(String testName) {
    DesiredCapabilities capabilities = DesiredCapabilities.htmlUnit();
    String platform = Configuration.getPlatform();
    if (!platform.equals("*")) {
    return capabilities;