public class BrowserHelper extends GenericHelper
| Constructor and Description |
|---|
BrowserHelper(org.openqa.selenium.WebDriver driver) |
| Modifier and Type | Method and Description |
|---|---|
void |
AcceptAlert() |
void |
AcceptAlertIfPresent() |
void |
AcceptPrompt(String text) |
boolean |
checkForTitle(String title) |
void |
DismissAlert() |
void |
DismissAlertIfPresent() |
org.openqa.selenium.Alert |
getAlert() |
String |
getAlertText() |
String |
getCurrentUrl() |
String |
getTitle() |
Set<String> |
getWindowHandlens() |
void |
goBack() |
void |
goForward() |
boolean |
isAlertPresent() |
void |
naviagteTo(URL url) |
void |
navigateTo(String url) |
void |
refresh() |
void |
switchToFrame(org.openqa.selenium.By locator) |
void |
switchToFrame(String nameOrId) |
void |
switchToParentWindow() |
void |
switchToParentWithChildClose() |
void |
SwitchToWindow(int index) |
convertStringToXMLDocument, FileDownload_Handler, FileUpload_Handler, FileUpload_Handler, generateFilename, getBrowserName, getElement, getElementWithNull, IsElementPresentQuick, takeFullScreenShot, takeFullScreenShot, takeScreenShot_db, takeScreenShot_OLD, takeScreenShot, takeScreenShotpublic void navigateTo(String url)
public void naviagteTo(URL url)
public String getTitle()
public String getCurrentUrl()
public void goBack()
public void goForward()
public void refresh()
public boolean checkForTitle(String title)
public void SwitchToWindow(int index)
public void switchToParentWindow()
public void switchToParentWithChildClose()
public void switchToFrame(org.openqa.selenium.By locator)
public void switchToFrame(String nameOrId)
public org.openqa.selenium.Alert getAlert()
public void AcceptAlert()
public void DismissAlert()
public String getAlertText()
public boolean isAlertPresent()
public void AcceptAlertIfPresent()
public void DismissAlertIfPresent()
public void AcceptPrompt(String text)
Copyright © 2021. All rights reserved.