Package org.ndviet.keyword
Class WebUI
java.lang.Object
org.robotframework.javalib.library.KeywordFactoryBasedLibrary<org.robotframework.javalib.keyword.DocumentedKeyword>
org.robotframework.javalib.library.AnnotationLibrary
org.ndviet.keyword.WebUI
- All Implemented Interfaces:
org.robotframework.javalib.library.KeywordDocumentationRepository,org.robotframework.javalib.library.RobotFrameworkDynamicAPI
public class WebUI
extends org.robotframework.javalib.library.AnnotationLibrary
-
Field Summary
Fields inherited from class org.robotframework.javalib.library.AnnotationLibrary
beanLoaders, classFilter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcaptureFullPageScreenshot(String fileName) voidvoidcapturePageScreenshot(String fileName) voidvoidvoidorg.openqa.selenium.WebElementfindWebElement(String objectID) org.openqa.selenium.WebElementfindWebElement(String objectID, Map variables) List<org.openqa.selenium.WebElement>findWebElements(String objectID) List<org.openqa.selenium.WebElement>findWebElements(String objectID, Map variables) voidmoveToElement(String objectID) voidmoveToElement(String objectID, Map variables) voidopenBrowser(String url) voidscrollToElement(String objectID) voidscrollToElement(String objectID, Map variables) voidvoidvoiduploadFile(String objectID, String absolutePath) voiduploadFile(String objectID, String absolutePath, Map variables) voidvoidvoidvoidverifyElementNotPresent(String objectID) voidverifyElementNotPresent(String objectID, Map variables) voidverifyElementNotVisible(String objectID) voidverifyElementNotVisible(String objectID, Map variables) voidverifyElementPresent(String objectID) voidverifyElementPresent(String objectID, Map variables) voidverifyElementTextContains(String objectID, String expectText) voidverifyElementTextContains(String objectID, Map variables, String expectText) voidverifyElementTextEquals(String objectID, String expectText) voidverifyElementTextEquals(String objectID, Map variables, String expectText) voidverifyElementVisible(String objectID) voidverifyElementVisible(String objectID, Map variables) Methods inherited from class org.robotframework.javalib.library.AnnotationLibrary
addKeywordPattern, autowireFields, createKeywordFactory, getKeywordArguments, getKeywordDocumentation, runKeyword, runKeywordMethods inherited from class org.robotframework.javalib.library.KeywordFactoryBasedLibrary
getClassLoader, getKeywordNames, setClassLoader
-
Constructor Details
-
WebUI
public WebUI()
-
-
Method Details
-
capturePageScreenshot
- Throws:
Exception
-
capturePageScreenshot
- Throws:
Exception
-
captureFullPageScreenshot
- Throws:
Exception
-
captureFullPageScreenshot
- Throws:
Exception
-
openBrowser
- Throws:
Exception
-
closeBrowser
public void closeBrowser() -
findWebElement
public org.openqa.selenium.WebElement findWebElement(String objectID, Map variables) throws Exception - Throws:
Exception
-
findWebElement
- Throws:
Exception
-
findWebElements
public List<org.openqa.selenium.WebElement> findWebElements(String objectID, Map variables) throws Exception - Throws:
Exception
-
findWebElements
- Throws:
Exception
-
click
- Throws:
Exception
-
click
- Throws:
Exception
-
uploadFile
- Throws:
Exception
-
uploadFile
- Throws:
Exception
-
setText
- Throws:
Exception
-
setText
- Throws:
Exception
-
getText
- Throws:
Exception
-
getText
- Throws:
Exception
-
getTexts
- Throws:
Exception
-
verifyElementPresent
- Throws:
Exception
-
verifyElementPresent
- Throws:
Exception
-
verifyElementNotPresent
- Throws:
Exception
-
verifyElementNotPresent
- Throws:
Exception
-
verifyElementHasAttribute
public void verifyElementHasAttribute() -
verifyElementNotHasAttribute
public void verifyElementNotHasAttribute() -
verifyElementAttributeValue
public void verifyElementAttributeValue() -
verifyElementTextEquals
public void verifyElementTextEquals(String objectID, Map variables, String expectText) throws Exception - Throws:
Exception
-
verifyElementTextEquals
- Throws:
Exception
-
verifyElementTextContains
public void verifyElementTextContains(String objectID, Map variables, String expectText) throws Exception - Throws:
Exception
-
verifyElementTextContains
- Throws:
Exception
-
verifyElementVisible
- Throws:
Exception
-
verifyElementVisible
- Throws:
Exception
-
verifyElementNotVisible
- Throws:
Exception
-
verifyElementNotVisible
- Throws:
Exception
-
moveToElement
- Throws:
Exception
-
moveToElement
- Throws:
Exception
-
scrollToElement
- Throws:
Exception
-
scrollToElement
- Throws:
Exception
-