com.nordstrom.automation.selenium.plugins.PhantomJsPlugin Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of selenium-foundation Show documentation
Show all versions of selenium-foundation Show documentation
Selenium Foundation is an automation framework designed to extend and enhance the capabilities provided by Selenium (WebDriver).
package com.nordstrom.automation.selenium.plugins;
import java.util.Map;
import com.nordstrom.automation.selenium.SeleniumConfig;
public class PhantomJsPlugin extends RemoteWebDriverPlugin {
public PhantomJsPlugin() {
super(PhantomJsCaps.DRIVER_NAME);
}
/**
* org.openqa.selenium.phantomjs.PhantomJSDriver
*
* <dependency>
* <groupId>com.codeborne</groupId>
* <artifactId>phantomjsdriver</artifactId>
* <version>1.4.4</version>
* <exclusions>
* <exclusion>
* <groupId>*</groupId>
* <artifactId>*</artifactId>
* </exclusion>
* </exclusions>
*</dependency>
*/
private static final String[] DEPENDENCY_CONTEXTS = {
"org.openqa.selenium.phantomjs.PhantomJSDriver",
"net.bytebuddy.matcher.ElementMatcher"
};
/**
* {@inheritDoc}
*/
@Override
public String[] getDependencyContexts() {
return DEPENDENCY_CONTEXTS;
}
/**
* {@inheritDoc}
*/
@Override
public String getCapabilities(SeleniumConfig config) {
return PhantomJsCaps.getCapabilities();
}
/**
* {@inheritDoc}
*/
@Override
public Map getPersonalities() {
return PhantomJsCaps.getPersonalities();
}
/**
* {@inheritDoc}
*/
@Override
public String[] getPropertyNames(String capabilities) {
return PhantomJsCaps.getPropertyNames(capabilities);
}
}