public class GenericHelper extends Object implements IwebComponent
| Constructor and Description |
|---|
GenericHelper(org.openqa.selenium.WebDriver driver) |
| Modifier and Type | Method and Description |
|---|---|
Document |
convertStringToXMLDocument(String xmlString) |
void |
FileDownload_Handler(String strFilePathExe,
String strFilePath) |
void |
FileUpload_Handler(String strFilePathExe) |
void |
FileUpload_Handler(String strFilePathExe,
String strFilePath) |
String |
generateFilename() |
String |
getBrowserName() |
org.openqa.selenium.WebElement |
getElement(org.openqa.selenium.By locator) |
org.openqa.selenium.WebElement |
getElementWithNull(org.openqa.selenium.By locator)
Check for element is present based on locator If the element is present
return the web element otherwise null
|
boolean |
IsElementPresentQuick(org.openqa.selenium.By locator) |
byte[] |
takeFullScreenShot() |
void |
takeFullScreenShot(String name) |
byte[] |
takeScreenShot_db() |
String |
takeScreenShot_OLD(String name) |
String |
takeScreenShot() |
void |
takeScreenShot(String name) |
public org.openqa.selenium.WebElement getElement(org.openqa.selenium.By locator)
public org.openqa.selenium.WebElement getElementWithNull(org.openqa.selenium.By locator)
locator - public boolean IsElementPresentQuick(org.openqa.selenium.By locator)
public String generateFilename()
public String getBrowserName()
public String takeScreenShot_OLD(String name) throws IOException
IOExceptionpublic String takeScreenShot()
public void takeScreenShot(String name) throws IOException
IOExceptionpublic byte[] takeScreenShot_db()
throws IOException
IOExceptionpublic void takeFullScreenShot(String name)
public byte[] takeFullScreenShot()
public void FileUpload_Handler(String strFilePathExe)
Copyright © 2021. All rights reserved.