public class Get extends Object
Constructor and Description |
---|
Get(org.openqa.selenium.WebDriver driver) |
Modifier and Type | Method and Description |
---|---|
String |
alert()
Retrieves the content of an alert present on the page.
|
String |
confirmation()
Retrieves the content of a confirmation present on the page.
|
org.openqa.selenium.Cookie |
cookie(String expectedCookieName)
Retrieves the full cookie in the application with the provided
cookieName.
|
String |
cookieDomain(String expectedCookieName)
Retrieves the cookie domain in the application with the provided
cookieName.
|
Date |
cookieExpiration(String expectedCookieName)
Retrieves the cookie expiration in the application with the provided
cookieName.
|
String |
cookiePath(String expectedCookieName)
Retrieves the cookie path in the application with the provided
cookieName.
|
String |
cookieValue(String expectedCookieName)
Retrieves the cookie value in the application with the provided
cookieName.
|
Object |
eval(String javascriptFunction)
Executes a provided script, and returns the output of that script.
|
String |
htmlSource()
Retrieves the full html source of the current page the application is on
|
String |
location()
Retrieves the current url of the application.
|
String |
prompt()
Retrieves the content of a prompt present on the page.
|
String |
title()
Retrieves the title of the current page the application is on
|
public String location()
public String title()
public String htmlSource()
public Object eval(String javascriptFunction)
javascriptFunction
- - the javascript function that is going to be executedpublic String alert()
public String confirmation()
public String prompt()
public org.openqa.selenium.Cookie cookie(String expectedCookieName)
expectedCookieName
- - the name of the cookiepublic String cookieValue(String expectedCookieName)
expectedCookieName
- - the name of the cookiepublic String cookiePath(String expectedCookieName)
expectedCookieName
- - the name of the cookiepublic String cookieDomain(String expectedCookieName)
expectedCookieName
- - the name of the cookiepublic Date cookieExpiration(String expectedCookieName)
expectedCookieName
- - the name of the cookieCopyright © 2017. All rights reserved.