public class Is extends Object
Constructor and Description |
---|
Is(org.openqa.selenium.WebDriver driver) |
Modifier and Type | Method and Description |
---|---|
boolean |
alertPresent()
Determines if an alert is present on the page.
|
boolean |
confirmationPresent()
Determines if a confirmation is present on the page.
|
boolean |
cookiePresent(String expectedCookieName)
Determines if a cookie exists in the application with the provided
cookieName.
|
boolean |
promptPresent()
Determines if a prompt is present on the page.
|
boolean |
textPresent(String expectedText)
Determines if the provided text(s) are on the current page.
|
boolean |
textPresentInSource(String expectedText)
Determines if the provides text is present in the current page source.
|
public boolean alertPresent()
public boolean confirmationPresent()
public boolean promptPresent()
public boolean cookiePresent(String expectedCookieName)
expectedCookieName
- - the name of the cookiepublic boolean textPresent(String expectedText)
expectedText
- - the text we are expecting to be present on the pagepublic boolean textPresentInSource(String expectedText)
expectedText
- - the text we are expecting to be present on the pageCopyright © 2017. All rights reserved.