public class SeleniumHelper extends Object implements IwebComponent
| Modifier and Type | Field and Description |
|---|---|
static org.openqa.selenium.WebElement |
ObjReuseWebElement |
| Constructor and Description |
|---|
SeleniumHelper(org.openqa.selenium.WebDriver driver) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear(org.openqa.selenium.By locator) |
void |
clearAndSendKeys(org.openqa.selenium.By locator,
String value) |
void |
clearAndSendKeys(org.openqa.selenium.WebElement element,
String value) |
void |
click(org.openqa.selenium.By locator) |
void |
click(org.openqa.selenium.WebElement element) |
void |
clickLink(String linkText) |
void |
clickPartialLink(String partialLinkText) |
org.openqa.selenium.WebElement |
element_not_exists(String objWebElement) |
boolean |
enabled(org.openqa.selenium.WebElement element) |
boolean |
exist(org.openqa.selenium.WebElement element) |
org.openqa.selenium.WebElement |
FindElement(String strObjectProp,
String strElement) |
String |
Get_Data(String strKey) |
List<String> |
getAllDropDownValues(org.openqa.selenium.By locator) |
String |
getHyperLink(org.openqa.selenium.By locator) |
String |
getHyperLink(org.openqa.selenium.WebElement element) |
String |
getSelectedValue(org.openqa.selenium.By locator) |
String |
getSelectedValue(org.openqa.selenium.WebElement element) |
String |
getText(org.openqa.selenium.By locator) |
String |
getText(org.openqa.selenium.WebElement element) |
boolean |
isIselected(org.openqa.selenium.By locator) |
boolean |
isIselected(org.openqa.selenium.WebElement element) |
String |
performOperation(String objWebElement,
String strOperation) |
String |
performOperation(String objWebElement,
String strOperation,
String strValue) |
String |
performOperation(String objWebElement,
String strOperation,
String strValue,
String strScreenshot) |
void |
selectCheckBox(org.openqa.selenium.By locator) |
void |
selectCheckBox(org.openqa.selenium.WebElement element) |
void |
SelectItemByPartialText(String strOption) |
void |
SelectItemByText(String strOption) |
void |
SelectUsingIndex(org.openqa.selenium.By locator,
int index) |
void |
SelectUsingValue(org.openqa.selenium.By locator,
String value) |
void |
SelectUsingVisibleValue(org.openqa.selenium.By locator,
String visibleValue) |
void |
SelectUsingVisibleValue(org.openqa.selenium.WebElement element,
String visibleValue) |
void |
sendKeys(org.openqa.selenium.By locator,
String value) |
void |
sendKeys(org.openqa.selenium.WebElement element,
String value) |
void |
sendKeysAndEnter(org.openqa.selenium.WebElement element,
String value) |
void |
unSelectCheckBox(org.openqa.selenium.By locator) |
void |
unSelectCheckBox(org.openqa.selenium.WebElement element) |
org.openqa.selenium.WebElement |
waitForElement(String objWebElement) |
org.openqa.selenium.WebElement |
waitForElementAndGettext(String objWebElement) |
public org.openqa.selenium.WebElement element_not_exists(String objWebElement)
public org.openqa.selenium.WebElement FindElement(String strObjectProp, String strElement)
public org.openqa.selenium.WebElement waitForElement(String objWebElement)
public org.openqa.selenium.WebElement waitForElementAndGettext(String objWebElement)
public void SelectItemByText(String strOption)
public void SelectItemByPartialText(String strOption)
public String performOperation(String objWebElement, String strOperation, String strValue) throws Exception
Exceptionpublic String performOperation(String objWebElement, String strOperation, String strValue, String strScreenshot) throws Exception
Exceptionpublic String performOperation(String objWebElement, String strOperation) throws Exception
Exceptionpublic void click(org.openqa.selenium.By locator)
public void click(org.openqa.selenium.WebElement element)
public boolean exist(org.openqa.selenium.WebElement element)
public boolean enabled(org.openqa.selenium.WebElement element)
public void selectCheckBox(org.openqa.selenium.By locator)
public void unSelectCheckBox(org.openqa.selenium.By locator)
public boolean isIselected(org.openqa.selenium.By locator)
public boolean isIselected(org.openqa.selenium.WebElement element)
public void selectCheckBox(org.openqa.selenium.WebElement element)
public void unSelectCheckBox(org.openqa.selenium.WebElement element)
public void SelectUsingVisibleValue(org.openqa.selenium.By locator,
String visibleValue)
public void SelectUsingVisibleValue(org.openqa.selenium.WebElement element,
String visibleValue)
public void SelectUsingValue(org.openqa.selenium.By locator,
String value)
public void SelectUsingIndex(org.openqa.selenium.By locator,
int index)
public String getSelectedValue(org.openqa.selenium.By locator)
public String getSelectedValue(org.openqa.selenium.WebElement element)
public void clickLink(String linkText)
public void clickPartialLink(String partialLinkText)
public String getHyperLink(org.openqa.selenium.By locator)
public String getHyperLink(org.openqa.selenium.WebElement element)
public void sendKeys(org.openqa.selenium.By locator,
String value)
public void sendKeys(org.openqa.selenium.WebElement element,
String value)
public void clearAndSendKeys(org.openqa.selenium.WebElement element,
String value)
public void sendKeysAndEnter(org.openqa.selenium.WebElement element,
String value)
public void clear(org.openqa.selenium.By locator)
public String getText(org.openqa.selenium.By locator)
public String getText(org.openqa.selenium.WebElement element)
public void clearAndSendKeys(org.openqa.selenium.By locator,
String value)
Copyright © 2021. All rights reserved.