public class OpenURLPlugin
extends et.seleniet.api.ElementIndependentKeywordPlugin
implements et.seleniet.api.NoStepScreenshot
This plugin opens a new page from given URL. Accepts an optional parameter called "noping" to disable ping check. Ping check means that before requesting the page to load via Selenium driver we perform a HTTP HEAD request to the hosts address.
| Constructor and Description |
|---|
OpenURLPlugin() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(et.seleniet.api.Seleniet driver,
org.openqa.selenium.WebElement elem,
String page,
List<String> lineArgs,
List<String> tcParams) |
static int |
ping(String url,
int timeout)
Pings a HTTP URL.
|
public void execute(et.seleniet.api.Seleniet driver,
org.openqa.selenium.WebElement elem,
String page,
List<String> lineArgs,
List<String> tcParams)
throws et.seleniet.api.AbortException
execute in class et.seleniet.api.KeywordPluginet.seleniet.api.AbortExceptionpublic static int ping(String url, int timeout) throws et.seleniet.api.AbortException
url - The HTTP URL to be pinged.timeout - The timeout in millis for both the connection timeout and the
response read timeout. Note that the total timeout is effectively
two times the given timeout.et.seleniet.api.AbortException - if the HEAD request failsCopyright © 2016 Thomas Eitzenberger. All rights reserved.