Package org.ndviet.library
Class WebUI
java.lang.Object
org.ndviet.library.WebUI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclick(TestObject testObject) static voidclick(TestObject testObject, int timeout) static voidstatic org.openqa.selenium.WebElementfindWebElement(TestObject testObject) static List<org.openqa.selenium.WebElement>findWebElements(TestObject testObject) static StringgetText(TestObject testObject) getTexts(TestObject testObject) static voidmoveToElement(TestObject testObject) static voidnavigateToUrl(String url) static org.openqa.selenium.WebDriverstatic org.openqa.selenium.WebDriveropenBrowser(String url) static org.openqa.selenium.WebDriveropenBrowser(String browser, String url) static voidscrollToElement(TestObject testObject) static voidsetText(TestObject testObject, String text) static voiduploadFile(TestObject testObject, String absolutePath) static voidverifyElementNotPresent(TestObject testObject) static voidverifyElementNotVisible(TestObject testObject) static voidverifyElementPresent(TestObject testObject) static voidverifyElementTextContains(TestObject testObject, String expectText) static voidverifyElementTextEquals(TestObject testObject, String expectText) static voidverifyElementVisible(TestObject testObject)
-
Constructor Details
-
WebUI
public WebUI()
-
-
Method Details
-
openBrowser
public static org.openqa.selenium.WebDriver openBrowser() -
openBrowser
-
openBrowser
-
closeBrowser
public static void closeBrowser() -
findWebElement
- Throws:
Exception
-
findWebElements
public static List<org.openqa.selenium.WebElement> findWebElements(TestObject testObject) throws Exception - Throws:
Exception
-
click
- Throws:
Exception
-
click
- Throws:
Exception
-
setText
- Throws:
Exception
-
getText
- Throws:
Exception
-
getTexts
- Throws:
Exception
-
moveToElement
- Throws:
Exception
-
scrollToElement
- Throws:
Exception
-
uploadFile
- Throws:
Exception
-
verifyElementPresent
- Throws:
Exception
-
verifyElementNotPresent
- Throws:
Exception
-
verifyElementVisible
- Throws:
Exception
-
verifyElementNotVisible
- Throws:
Exception
-
verifyElementTextEquals
public static void verifyElementTextEquals(TestObject testObject, String expectText) throws Exception - Throws:
Exception
-
verifyElementTextContains
public static void verifyElementTextContains(TestObject testObject, String expectText) throws Exception - Throws:
Exception
-