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
-
-
Constructor Summary
Constructors Constructor Description WebUI()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcaptureFullPageScreenshot()voidcaptureFullPageScreenshot(java.lang.String fileName)voidcapturePageScreenshot()voidcapturePageScreenshot(java.lang.String fileName)voidclick(java.lang.String objectID)voidclick(java.lang.String objectID, java.util.Map variables)voidcloseBrowser()org.openqa.selenium.WebElementfindWebElement(java.lang.String objectID)org.openqa.selenium.WebElementfindWebElement(java.lang.String objectID, java.util.Map variables)java.util.List<org.openqa.selenium.WebElement>findWebElements(java.lang.String objectID)java.util.List<org.openqa.selenium.WebElement>findWebElements(java.lang.String objectID, java.util.Map variables)java.lang.StringgetText(java.lang.String objectID)java.lang.StringgetText(java.lang.String objectID, java.util.Map variables)java.util.List<java.lang.String>getTexts(java.lang.String objectID)voidmoveToElement(java.lang.String objectID)voidmoveToElement(java.lang.String objectID, java.util.Map variables)voidopenBrowser(java.lang.String url)voidscrollToElement(java.lang.String objectID)voidscrollToElement(java.lang.String objectID, java.util.Map variables)voidsetText(java.lang.String objectID, java.lang.String text)voidsetText(java.lang.String objectID, java.lang.String text, java.util.Map variables)voiduploadFile(java.lang.String objectID, java.lang.String absolutePath)voiduploadFile(java.lang.String objectID, java.lang.String absolutePath, java.util.Map variables)voidverifyElementAttributeValue()voidverifyElementHasAttribute()voidverifyElementNotHasAttribute()voidverifyElementNotPresent(java.lang.String objectID)voidverifyElementNotPresent(java.lang.String objectID, java.util.Map variables)voidverifyElementNotVisible(java.lang.String objectID)voidverifyElementNotVisible(java.lang.String objectID, java.util.Map variables)voidverifyElementPresent(java.lang.String objectID)voidverifyElementPresent(java.lang.String objectID, java.util.Map variables)voidverifyElementTextContains(java.lang.String objectID, java.lang.String expectText)voidverifyElementTextContains(java.lang.String objectID, java.util.Map variables, java.lang.String expectText)voidverifyElementTextEquals(java.lang.String objectID, java.lang.String expectText)voidverifyElementTextEquals(java.lang.String objectID, java.util.Map variables, java.lang.String expectText)voidverifyElementVisible(java.lang.String objectID)voidverifyElementVisible(java.lang.String objectID, java.util.Map variables)-
Methods inherited from class org.robotframework.javalib.library.AnnotationLibrary
addKeywordPattern, autowireFields, createKeywordFactory, getKeywordArguments, getKeywordDocumentation, runKeyword, runKeyword
-
-
-
-
Method Detail
-
capturePageScreenshot
public void capturePageScreenshot(java.lang.String fileName) throws java.lang.Exception- Throws:
java.lang.Exception
-
capturePageScreenshot
public void capturePageScreenshot() throws java.lang.Exception- Throws:
java.lang.Exception
-
captureFullPageScreenshot
public void captureFullPageScreenshot(java.lang.String fileName) throws java.lang.Exception- Throws:
java.lang.Exception
-
captureFullPageScreenshot
public void captureFullPageScreenshot() throws java.lang.Exception- Throws:
java.lang.Exception
-
openBrowser
public void openBrowser(java.lang.String url) throws java.lang.Exception- Throws:
java.lang.Exception
-
closeBrowser
public void closeBrowser()
-
findWebElement
public org.openqa.selenium.WebElement findWebElement(java.lang.String objectID, java.util.Map variables) throws java.lang.Exception- Throws:
java.lang.Exception
-
findWebElement
public org.openqa.selenium.WebElement findWebElement(java.lang.String objectID) throws java.lang.Exception- Throws:
java.lang.Exception
-
findWebElements
public java.util.List<org.openqa.selenium.WebElement> findWebElements(java.lang.String objectID, java.util.Map variables) throws java.lang.Exception- Throws:
java.lang.Exception
-
findWebElements
public java.util.List<org.openqa.selenium.WebElement> findWebElements(java.lang.String objectID) throws java.lang.Exception- Throws:
java.lang.Exception
-
click
public void click(java.lang.String objectID, java.util.Map variables) throws java.lang.Exception- Throws:
java.lang.Exception
-
click
public void click(java.lang.String objectID) throws java.lang.Exception- Throws:
java.lang.Exception
-
uploadFile
public void uploadFile(java.lang.String objectID, java.lang.String absolutePath, java.util.Map variables) throws java.lang.Exception- Throws:
java.lang.Exception
-
uploadFile
public void uploadFile(java.lang.String objectID, java.lang.String absolutePath) throws java.lang.Exception- Throws:
java.lang.Exception
-
setText
public void setText(java.lang.String objectID, java.lang.String text, java.util.Map variables) throws java.lang.Exception- Throws:
java.lang.Exception
-
setText
public void setText(java.lang.String objectID, java.lang.String text) throws java.lang.Exception- Throws:
java.lang.Exception
-
getText
public java.lang.String getText(java.lang.String objectID, java.util.Map variables) throws java.lang.Exception- Throws:
java.lang.Exception
-
getText
public java.lang.String getText(java.lang.String objectID) throws java.lang.Exception- Throws:
java.lang.Exception
-
getTexts
public java.util.List<java.lang.String> getTexts(java.lang.String objectID) throws java.lang.Exception- Throws:
java.lang.Exception
-
verifyElementPresent
public void verifyElementPresent(java.lang.String objectID, java.util.Map variables) throws java.lang.Exception- Throws:
java.lang.Exception
-
verifyElementPresent
public void verifyElementPresent(java.lang.String objectID) throws java.lang.Exception- Throws:
java.lang.Exception
-
verifyElementNotPresent
public void verifyElementNotPresent(java.lang.String objectID, java.util.Map variables) throws java.lang.Exception- Throws:
java.lang.Exception
-
verifyElementNotPresent
public void verifyElementNotPresent(java.lang.String objectID) throws java.lang.Exception- Throws:
java.lang.Exception
-
verifyElementHasAttribute
public void verifyElementHasAttribute()
-
verifyElementNotHasAttribute
public void verifyElementNotHasAttribute()
-
verifyElementAttributeValue
public void verifyElementAttributeValue()
-
verifyElementTextEquals
public void verifyElementTextEquals(java.lang.String objectID, java.util.Map variables, java.lang.String expectText) throws java.lang.Exception- Throws:
java.lang.Exception
-
verifyElementTextEquals
public void verifyElementTextEquals(java.lang.String objectID, java.lang.String expectText) throws java.lang.Exception- Throws:
java.lang.Exception
-
verifyElementTextContains
public void verifyElementTextContains(java.lang.String objectID, java.util.Map variables, java.lang.String expectText) throws java.lang.Exception- Throws:
java.lang.Exception
-
verifyElementTextContains
public void verifyElementTextContains(java.lang.String objectID, java.lang.String expectText) throws java.lang.Exception- Throws:
java.lang.Exception
-
verifyElementVisible
public void verifyElementVisible(java.lang.String objectID, java.util.Map variables) throws java.lang.Exception- Throws:
java.lang.Exception
-
verifyElementVisible
public void verifyElementVisible(java.lang.String objectID) throws java.lang.Exception- Throws:
java.lang.Exception
-
verifyElementNotVisible
public void verifyElementNotVisible(java.lang.String objectID, java.util.Map variables) throws java.lang.Exception- Throws:
java.lang.Exception
-
verifyElementNotVisible
public void verifyElementNotVisible(java.lang.String objectID) throws java.lang.Exception- Throws:
java.lang.Exception
-
moveToElement
public void moveToElement(java.lang.String objectID, java.util.Map variables) throws java.lang.Exception- Throws:
java.lang.Exception
-
moveToElement
public void moveToElement(java.lang.String objectID) throws java.lang.Exception- Throws:
java.lang.Exception
-
scrollToElement
public void scrollToElement(java.lang.String objectID, java.util.Map variables) throws java.lang.Exception- Throws:
java.lang.Exception
-
scrollToElement
public void scrollToElement(java.lang.String objectID) throws java.lang.Exception- Throws:
java.lang.Exception
-
-