Package dev.galasa.selenium
Interface IWebPage
public interface IWebPage
TPI for the WebPageImpl object provisioned by the Selenium Manager
-
Method Summary
Modifier and TypeMethodDescriptionclearElement
(org.openqa.selenium.By by) Clears the Element specified by a By ObjectclearElement
(org.openqa.selenium.By by, int secondsTimeout) Clears the Element specified by a By ObjectclearElementByClassName
(String className) Clears the Element specified by a Class NameclearElementByClassName
(String className, int secondsTimeout) Clears the Element specified by a Class NameclearElementByCssSelector
(String selector) Clears the Element specified by a Css SelectorclearElementByCssSelector
(String selector, int secondsTimeout) Clears the Element specified by a Css SelectorClears the Element specified by an IDclearElementById
(String id, int secondsTimeout) Clears the Element specified by an IDclearElementByLinkText
(String linkText) Clears the Element specified by a Link TextclearElementByLinkText
(String linkText, int secondsTimeout) Clears the Element specified by a Link TextclearElementByName
(String name) Clears the Element specified by a NameclearElementByName
(String name, int secondsTimeout) Clears the Element specified by a NameclearElementByPartialLinkText
(String linkText) Clears the Element specified by a Partial Link TextclearElementByPartialLinkText
(String linkText, int secondsTimeout) Clears the Element specified by a Partial Link TextclearElementByTagName
(String name) Clears the Element specified by a Tag NameclearElementByTagName
(String name, int secondsTimeout) Clears the Element specified by a Tag NameclearElementByXpath
(String xpathExpression) Clears the Element specified by an XPath ExpressionclearElementByXpath
(String xpathExpression, int secondsTimeout) Clears the Element specified by an XPath ExpressionclickElement
(org.openqa.selenium.By by) Clicks the Element specified by a By ObjectclickElement
(org.openqa.selenium.By by, int secondsTimeout) Clicks the Element specified by a By ObjectclickElementByClassName
(String className) Clicks the Element specified by a Class NameclickElementByClassName
(String className, int secondsTimeout) Clicks the Element specified by a Class NameclickElementByCssSelector
(String selector) Clicks the Element specified by a Css SelectorclickElementByCssSelector
(String selector, int secondsTimeout) Clicks the Element specified by a Css SelectorClicks the Element specified by an IDclickElementById
(String id, int secondsTimeout) Clicks the Element specified by an IDclickElementByLinkText
(String linkText) Clicks the Element specified by a Link TextclickElementByLinkText
(String linkText, int secondsTimeout) Clicks the Element specified by a Link TextclickElementByName
(String name) Clicks the Element specified by a NameclickElementByName
(String name, int secondsTimeout) Clicks the Element specified by a NameclickElementByPartialLinkText
(String linkText) Clicks the Element specified by a Partial Link TextclickElementByPartialLinkText
(String linkText, int secondsTimeout) Clicks the Element specified by a Partial Link TextclickElementByTagName
(String name) Clicks the Element specified by a Tag NameclickElementByTagName
(String name, int secondsTimeout) Clicks the Element specified by a Tag NameclickElementByXpath
(String xpathExpression) Clicks the Element specified by an XPath ExpressionclickElementByXpath
(String xpathExpression, int secondsTimeout) Clicks the Element specified by an XPath Expressionvoid
close()
Close current Window and quit browser if was only Window openorg.openqa.selenium.support.ui.WebDriverWait
Return a WebDriverWait with a default timeoutorg.openqa.selenium.support.ui.WebDriverWait
driverWait
(int secondsTimeout) Return a WebDriverWait with a given timeoutorg.openqa.selenium.WebElement
findElement
(org.openqa.selenium.By by) Returns the first WebElement specified by a By Objectorg.openqa.selenium.WebElement
findElementByClassName
(String className) Returns the first WebElement specified by a Class Nameorg.openqa.selenium.WebElement
findElementByCssSelector
(String selector) Returns the first WebElement specified by a Css Selectororg.openqa.selenium.WebElement
Returns the first WebElement specified by an IDorg.openqa.selenium.WebElement
findElementByLinkText
(String linkText) Returns the first WebElement specified by a Link Textorg.openqa.selenium.WebElement
findElementByName
(String name) Returns the first WebElement specified by a Nameorg.openqa.selenium.WebElement
findElementByPartialLinkText
(String linkText) Returns the first WebElement specified by a Partial Link Textorg.openqa.selenium.WebElement
findElementByTagName
(String name) Returns the first WebElement specified by a Tag Nameorg.openqa.selenium.WebElement
findElementByXpath
(String xpathExpression) Returns the first WebElement specified by an XPath ExpressionList<org.openqa.selenium.WebElement>
findElements
(org.openqa.selenium.By by) Returns all WebElements specified by a By ObjectList<org.openqa.selenium.WebElement>
findElementsByClassName
(String className) Returns all WebElements specified by a Class NameList<org.openqa.selenium.WebElement>
findElementsByCssSelector
(String selector) Returns all WebElements specified by a Css SelectorList<org.openqa.selenium.WebElement>
Returns all WebElements specified by an IDList<org.openqa.selenium.WebElement>
findElementsByLinkText
(String linkText) Returns all WebElements specified by a Link TextList<org.openqa.selenium.WebElement>
findElementsByName
(String name) Returns all WebElements specified by a NameList<org.openqa.selenium.WebElement>
findElementsByPartialLinkText
(String linkText) Returns all WebElements specified by a Partial Link TextList<org.openqa.selenium.WebElement>
findElementsByTagName
(String name) Returns all WebElements specified by a Tag NameList<org.openqa.selenium.WebElement>
findElementsByXpath
(String xpathExpression) Returns all WebElements specified by an XPath ExpressionLoad WebPage with the given URL in current Browser WindowReturns the String representation of the URL f the current WebPageReturns the source of the current WebPagegetTitle()
Returns the Title of the current WebPageorg.openqa.selenium.WebDriver
Returns the WebDriver associated with this WebPageReturn an opaque handle to this window that uniquely identifies it within this driver instanceReturn a set of window handles which can be used to iterate over all open windows of this WebDriver instance by passing them to switchTo().WebDriver.Options.window()org.openqa.selenium.WebDriver.Options
manage()
Returns the Options interface for the WebPagemaximize()
Maximizes the WebPageorg.openqa.selenium.WebDriver.Navigation
navigate()
Returns an abstraction allowing the Diver to access the Browser's history to navigate to a URLvoid
quit()
Quit the Driver, closes all associated WindowssendKeysToElement
(org.openqa.selenium.By by, CharSequence keysToSend) Send CharSequence of Keys to an Element specified by a By ObjectsendKeysToElement
(org.openqa.selenium.By by, CharSequence keysToSend, int secondsTimeout) Send CharSequence of Keys to an Element specified by a By ObjectsendKeysToElementByClassName
(String className, CharSequence keysToSend) Send CharSequence of Keys to an Element specified by a Class NamesendKeysToElementByClassName
(String className, CharSequence keysToSend, int secondsTimeout) Send CharSequence of Keys to an Element specified by a Class NamesendKeysToElementByCssSelector
(String selector, CharSequence keysToSend) Send CharSequence of Keys to an Element specified by a Css SelectorsendKeysToElementByCssSelector
(String selector, CharSequence keysToSend, int secondsTimeout) Send CharSequence of Keys to an Element specified by a Css SelectorsendKeysToElementById
(String id, CharSequence keysToSend) Send CharSequence of Keys to an Element specified by an IDsendKeysToElementById
(String id, CharSequence keysToSend, int secondsTimeout) Send CharSequence of Keys to an Element specified by an IDsendKeysToElementByLinkText
(String linkText, CharSequence keysToSend) Send CharSequence of Keys to an Element specified by a Link TextsendKeysToElementByLinkText
(String linkText, CharSequence keysToSend, int secondsTimeout) Send CharSequence of Keys to an Element specified by a Link TextsendKeysToElementByName
(String name, CharSequence keysToSend) Send CharSequence of Keys to an Element specified by a NamesendKeysToElementByName
(String name, CharSequence keysToSend, int secondsTimeout) Send CharSequence of Keys to an Element specified by a NamesendKeysToElementByPartialLinkText
(String linkText, CharSequence keysToSend) Send CharSequence of Keys to an Element specified by a Partial Link TextsendKeysToElementByPartialLinkText
(String linkText, CharSequence keysToSend, int secondsTimeout) Send CharSequence of Keys to an Element specified by a Partial Link TextsendKeysToElementByTagName
(String name, CharSequence keysToSend) Send CharSequence of Keys to an Element specified by a Tag NamesendKeysToElementByTagName
(String name, CharSequence keysToSend, int secondsTimeout) Send CharSequence of Keys to an Element specified by a Tag NamesendKeysToElementByXpath
(String xpathExpression, CharSequence keysToSend) Send CharSequence of Keys to an Element specified by an XPath ExpressionsendKeysToElementByXpath
(String xpathExpression, CharSequence keysToSend, int secondsTimeout) Send CharSequence of Keys to an Element specified by an XPath Expressionorg.openqa.selenium.WebDriver.TargetLocator
switchTo()
Send future commands to a different frameswitchToFrame
(org.openqa.selenium.By by) Send future commands to the frame specified by By ObjectswitchToFrameByClassName
(String className) Send future commands to the frame specified by Class NameswitchToFrameByCssSelector
(String selector) Send future commands to the frame specified by Css SelectorSend future commands to the frame specified by IDswitchToFrameByLinkText
(String linkText) Send future commands to the frame specified by Link TextswitchToFrameByName
(String name) Send future commands to the frame specified by NameswitchToFrameByPartialLinkText
(String linkText) Send future commands to the frame specified by Partial Link TextswitchToFrameByTagName
(String name) Send future commands to the frame specified by Tag NameswitchToFrameByXpath
(String xpathExpression) Send future commands to the frame specified by XPath ExpressionTakes a screenshot of the current screen and stores it in the RASorg.openqa.selenium.WebElement
waitForElement
(org.openqa.selenium.By by) Waits for a specified By objectorg.openqa.selenium.WebElement
waitForElement
(org.openqa.selenium.By by, int secondsTimeout) Waits for a specified By object with timeoutorg.openqa.selenium.WebElement
waitForElementByClassName
(String className) Waits for an Object with specified Class Nameorg.openqa.selenium.WebElement
waitForElementByClassName
(String className, int secondsTimeout) Waits for an Object with specified Class Name with timeoutorg.openqa.selenium.WebElement
waitForElementByCssSelector
(String selector) Waits for an Object with specified Css Selectororg.openqa.selenium.WebElement
waitForElementByCssSelector
(String selector, int secondsTimeout) Waits for an Object with specified Css Selector with timeoutorg.openqa.selenium.WebElement
Waits for an Object with specified IDorg.openqa.selenium.WebElement
waitForElementById
(String id, int secondsTimeout) Waits for an Object with specified ID with timeoutorg.openqa.selenium.WebElement
waitForElementByLinkText
(String linkText) Waits for an Object with specified Link Textorg.openqa.selenium.WebElement
waitForElementByLinkText
(String linkText, int secondsTimeout) Waits for an Object with specified Link Text with timeoutorg.openqa.selenium.WebElement
waitForElementByName
(String name) Waits for an Object with specified Nameorg.openqa.selenium.WebElement
waitForElementByName
(String name, int secondsTimeout) Waits for an Object with specified Name with timeoutorg.openqa.selenium.WebElement
waitForElementByPartialLinkText
(String linkText) Waits for an Object with specified Partial Link Textorg.openqa.selenium.WebElement
waitForElementByPartialLinkText
(String linkText, int secondsTimeout) Waits for an Object with specified Partial Link Text with timeoutorg.openqa.selenium.WebElement
waitForElementByTagName
(String tagName) Waits for an Object with specified Tag Nameorg.openqa.selenium.WebElement
waitForElementByTagName
(String tagName, int secondsTimeout) Waits for an Object with specified Tag Name with timeoutorg.openqa.selenium.WebElement
waitForElementByXpath
(String xpathExpression) Waits for an Object with specified XPath expressionorg.openqa.selenium.WebElement
waitForElementByXpath
(String xpathExpression, int secondsTimeout) Waits for an Object with specified XPath expression with timeoutWaits for the page to fully load with the default timeoutwaitForPageLoad
(int secondsTimeout) Waits for the page to fully load with the given timeout
-
Method Details
-
close
void close()Close current Window and quit browser if was only Window open -
clearElementByClassName
Clears the Element specified by a Class Name- Parameters:
className
- The Object used to specify the Element- Returns:
- The WebPage after the Element is cleared
-
clearElementByClassName
Clears the Element specified by a Class Name- Parameters:
className
- The Object used to specify the ElementsecondsTimeout
- The wait timeout in seconds- Returns:
- The WebPage after the Element is cleared
-
clearElementByCssSelector
Clears the Element specified by a Css Selector- Parameters:
selector
- The Object used to specify the Element- Returns:
- The WebPage after the Element is cleared
-
clearElementByCssSelector
Clears the Element specified by a Css Selector- Parameters:
selector
- The Object used to specify the ElementsecondsTimeout
- The wait timeout in seconds- Returns:
- The WebPage after the Element is cleared
-
clearElementById
Clears the Element specified by an ID- Parameters:
id
- The Object used to specify the Element- Returns:
- The WebPage after the Element is cleared
-
clearElementById
Clears the Element specified by an ID- Parameters:
id
- The Object used to specify the ElementsecondsTimeout
- The wait timeout in seconds- Returns:
- The WebPage after the Element is cleared
-
clearElementByLinkText
Clears the Element specified by a Link Text- Parameters:
linkText
- The Object used to specify the Element- Returns:
- The WebPage after the Element is cleared
-
clearElementByLinkText
Clears the Element specified by a Link Text- Parameters:
linkText
- The Object used to specify the ElementsecondsTimeout
- The wait timeout in seconds- Returns:
- The WebPage after the Element is cleared
-
clearElementByName
Clears the Element specified by a Name- Parameters:
name
- The Object used to specify the Element- Returns:
- The WebPage after the Element is cleared
-
clearElementByName
Clears the Element specified by a Name- Parameters:
name
- The Object used to specify the ElementsecondsTimeout
- The wait timeout in seconds- Returns:
- The WebPage after the Element is cleared
-
clearElementByPartialLinkText
Clears the Element specified by a Partial Link Text- Parameters:
linkText
- The Object used to specify the Element- Returns:
- The WebPage after the Element is cleared
-
clearElementByPartialLinkText
Clears the Element specified by a Partial Link Text- Parameters:
linkText
- The Object used to specify the ElementsecondsTimeout
- The wait timeout in seconds- Returns:
- The WebPage after the Element is cleared
-
clearElementByTagName
Clears the Element specified by a Tag Name- Parameters:
name
- The Object used to specify the Element- Returns:
- The WebPage after the Element is cleared
-
clearElementByTagName
Clears the Element specified by a Tag Name- Parameters:
name
- The Object used to specify the ElementsecondsTimeout
- The wait timeout in seconds- Returns:
- The WebPage after the Element is cleared
-
clearElementByXpath
Clears the Element specified by an XPath Expression- Parameters:
xpathExpression
- The Object used to specify the Element- Returns:
- The WebPage after the Element is cleared
-
clearElementByXpath
Clears the Element specified by an XPath Expression- Parameters:
xpathExpression
- The Object used to specify the ElementsecondsTimeout
- The wait timeout in seconds- Returns:
- The WebPage after the Element is cleared
-
clearElement
Clears the Element specified by a By Object- Parameters:
by
- The Object used to specify the Element- Returns:
- The WebPage after the Element is cleared
-
clearElement
Clears the Element specified by a By Object- Parameters:
by
- The Object used to specify the ElementsecondsTimeout
- The wait timeout in seconds- Returns:
- The WebPage after the Element is cleared
-
clickElementByClassName
Clicks the Element specified by a Class Name- Parameters:
className
- The Object used to specify the Element- Returns:
- The WebPage after the Element is clicked
-
clickElementByClassName
Clicks the Element specified by a Class Name- Parameters:
className
- The Object used to specify the ElementsecondsTimeout
- The wait timeout in seconds- Returns:
- The WebPage after the Element is clicked
-
clickElementByCssSelector
Clicks the Element specified by a Css Selector- Parameters:
selector
- The Object used to specify the Element- Returns:
- The WebPage after the Element is clicked
-
clickElementByCssSelector
Clicks the Element specified by a Css Selector- Parameters:
selector
- The Object used to specify the ElementsecondsTimeout
- The wait timeout in seconds- Returns:
- The WebPage after the Element is clicked
-
clickElementById
Clicks the Element specified by an ID- Parameters:
id
- The Object used to specify the Element- Returns:
- The WebPage after the Element is clicked
-
clickElementById
Clicks the Element specified by an ID- Parameters:
id
- The Object used to specify the ElementsecondsTimeout
- The wait timeout in seconds- Returns:
- The WebPage after the Element is clicked
-
clickElementByLinkText
Clicks the Element specified by a Link Text- Parameters:
linkText
- The Object used to specify the Element- Returns:
- The WebPage after the Element is clicked
-
clickElementByLinkText
Clicks the Element specified by a Link Text- Parameters:
linkText
- The Object used to specify the ElementsecondsTimeout
- The wait timeout in seconds- Returns:
- The WebPage after the Element is clicked
-
clickElementByName
Clicks the Element specified by a Name- Parameters:
name
- The Object used to specify the Element- Returns:
- The WebPage after the Element is clicked
-
clickElementByName
Clicks the Element specified by a Name- Parameters:
name
- The Object used to specify the ElementsecondsTimeout
- The wait timeout in seconds- Returns:
- The WebPage after the Element is clicked
-
clickElementByPartialLinkText
Clicks the Element specified by a Partial Link Text- Parameters:
linkText
- The Object used to specify the Element- Returns:
- The WebPage after the Element is clicked
-
clickElementByPartialLinkText
Clicks the Element specified by a Partial Link Text- Parameters:
linkText
- The Object used to specify the ElementsecondsTimeout
- The wait timeout in seconds- Returns:
- The WebPage after the Element is clicked
-
clickElementByTagName
Clicks the Element specified by a Tag Name- Parameters:
name
- The Object used to specify the Element- Returns:
- The WebPage after the Element is clicked
-
clickElementByTagName
Clicks the Element specified by a Tag Name- Parameters:
name
- The Object used to specify the ElementsecondsTimeout
- The wait timeout in seconds- Returns:
- The WebPage after the Element is clicked
-
clickElementByXpath
Clicks the Element specified by an XPath Expression- Parameters:
xpathExpression
- The Object used to specify the Element- Returns:
- The WebPage after the Element is clicked
-
clickElementByXpath
Clicks the Element specified by an XPath Expression- Parameters:
xpathExpression
- The Object used to specify the ElementsecondsTimeout
- The wait timeout in seconds- Returns:
- The WebPage after the Element is clicked
-
clickElement
Clicks the Element specified by a By Object- Parameters:
by
- The Object used to specify the Element- Returns:
- The WebPage after the Element is clicked
-
clickElement
Clicks the Element specified by a By Object- Parameters:
by
- The Object used to specify the ElementsecondsTimeout
- The wait timeout in seconds- Returns:
- The WebPage after the Element is clicked
-
sendKeysToElementByClassName
Send CharSequence of Keys to an Element specified by a Class Name- Parameters:
className
- The Object used to specify the ElementkeysToSend
- The Keys to be sent- Returns:
- The WebPage after the Keys have been sent
-
sendKeysToElementByClassName
IWebPage sendKeysToElementByClassName(String className, CharSequence keysToSend, int secondsTimeout) Send CharSequence of Keys to an Element specified by a Class Name- Parameters:
className
- The Object used to specify the ElementkeysToSend
- The Keys to be sentsecondsTimeout
- The wait timeout in seconds- Returns:
- The WebPage after the Keys have been sent
-
sendKeysToElementByCssSelector
Send CharSequence of Keys to an Element specified by a Css Selector- Parameters:
selector
- The Object used to specify the ElementkeysToSend
- The Keys to be sent- Returns:
- The WebPage after the Keys have been sent
-
sendKeysToElementByCssSelector
IWebPage sendKeysToElementByCssSelector(String selector, CharSequence keysToSend, int secondsTimeout) Send CharSequence of Keys to an Element specified by a Css Selector- Parameters:
selector
- The Object used to specify the ElementkeysToSend
- The Keys to be sentsecondsTimeout
- The wait timeout in seconds- Returns:
- The WebPage after the Keys have been sent
-
sendKeysToElementById
Send CharSequence of Keys to an Element specified by an ID- Parameters:
id
- The Object used to specify the ElementkeysToSend
- The Keys to be sent- Returns:
- The WebPage after the Keys have been sent
-
sendKeysToElementById
Send CharSequence of Keys to an Element specified by an ID- Parameters:
id
- The Object used to specify the ElementkeysToSend
- The Keys to be sentsecondsTimeout
- The wait timeout in seconds- Returns:
- The WebPage after the Keys have been sent
-
sendKeysToElementByLinkText
Send CharSequence of Keys to an Element specified by a Link Text- Parameters:
linkText
- The Object used to specify the ElementkeysToSend
- The Keys to be sent- Returns:
- The WebPage after the Keys have been sent
-
sendKeysToElementByLinkText
Send CharSequence of Keys to an Element specified by a Link Text- Parameters:
linkText
- The Object used to specify the ElementkeysToSend
- The Keys to be sentsecondsTimeout
- The wait timeout in seconds- Returns:
- The WebPage after the Keys have been sent
-
sendKeysToElementByName
Send CharSequence of Keys to an Element specified by a Name- Parameters:
name
- The Object used to specify the ElementkeysToSend
- The Keys to be sent- Returns:
- The WebPage after the Keys have been sent
-
sendKeysToElementByName
Send CharSequence of Keys to an Element specified by a Name- Parameters:
name
- The Object used to specify the ElementkeysToSend
- The Keys to be sentsecondsTimeout
- The wait timeout in seconds- Returns:
- The WebPage after the Keys have been sent
-
sendKeysToElementByPartialLinkText
Send CharSequence of Keys to an Element specified by a Partial Link Text- Parameters:
linkText
- The Object used to specify the ElementkeysToSend
- The Keys to be sent- Returns:
- The WebPage after the Keys have been sent
-
sendKeysToElementByPartialLinkText
IWebPage sendKeysToElementByPartialLinkText(String linkText, CharSequence keysToSend, int secondsTimeout) Send CharSequence of Keys to an Element specified by a Partial Link Text- Parameters:
linkText
- The Object used to specify the ElementkeysToSend
- The Keys to be sentsecondsTimeout
- The wait timeout in seconds- Returns:
- The WebPage after the Keys have been sent
-
sendKeysToElementByTagName
Send CharSequence of Keys to an Element specified by a Tag Name- Parameters:
name
- The Object used to specify the ElementkeysToSend
- The Keys to be sent- Returns:
- The WebPage after the Keys have been sent
-
sendKeysToElementByTagName
Send CharSequence of Keys to an Element specified by a Tag Name- Parameters:
name
- The Object used to specify the ElementkeysToSend
- The Keys to be sentsecondsTimeout
- The wait timeout in seconds- Returns:
- The WebPage after the Keys have been sent
-
sendKeysToElementByXpath
Send CharSequence of Keys to an Element specified by an XPath Expression- Parameters:
xpathExpression
- The Object used to specify the ElementkeysToSend
- The Keys to be sent- Returns:
- The WebPage after the Keys have been sent
-
sendKeysToElementByXpath
IWebPage sendKeysToElementByXpath(String xpathExpression, CharSequence keysToSend, int secondsTimeout) Send CharSequence of Keys to an Element specified by an XPath Expression- Parameters:
xpathExpression
- The Object used to specify the ElementkeysToSend
- The Keys to be sentsecondsTimeout
- The wait timeout in seconds- Returns:
- The WebPage after the Keys have been sent
-
sendKeysToElement
Send CharSequence of Keys to an Element specified by a By Object- Parameters:
by
- The Object used to specify the ElementkeysToSend
- The Keys to be sent- Returns:
- The WebPage after the Keys have been sent
-
sendKeysToElement
Send CharSequence of Keys to an Element specified by a By Object- Parameters:
by
- The Object used to specify the ElementkeysToSend
- The Keys to be sentsecondsTimeout
- The wait timeout in seconds- Returns:
- The WebPage after the Keys have been sent
-
findElementByClassName
Returns the first WebElement specified by a Class Name- Parameters:
className
- The Object used to find the element- Returns:
- The first found WebElement
-
findElementsByClassName
Returns all WebElements specified by a Class Name- Parameters:
className
- The Object used to find the elements- Returns:
- All found WebElements
-
findElementByCssSelector
Returns the first WebElement specified by a Css Selector- Parameters:
selector
- The Object used to find the element- Returns:
- The first found WebElement
-
findElementsByCssSelector
Returns all WebElements specified by a Css Selector- Parameters:
selector
- The Object used to find the elements- Returns:
- All found WebElements
-
findElementById
Returns the first WebElement specified by an ID- Parameters:
id
- The Object used to find the element- Returns:
- The first found WebElement
-
findElementsById
Returns all WebElements specified by an ID- Parameters:
id
- The Object used to find the elements- Returns:
- All found WebElements
-
findElementByLinkText
Returns the first WebElement specified by a Link Text- Parameters:
linkText
- The Object used to find the element- Returns:
- The first found WebElement
-
findElementsByLinkText
Returns all WebElements specified by a Link Text- Parameters:
linkText
- The Object used to find the elements- Returns:
- All found WebElements
-
findElementByName
Returns the first WebElement specified by a Name- Parameters:
name
- The Object used to find the element- Returns:
- The first found WebElement
-
findElementsByName
Returns all WebElements specified by a Name- Parameters:
name
- The Object used to find the elements- Returns:
- All found WebElements
-
findElementByPartialLinkText
Returns the first WebElement specified by a Partial Link Text- Parameters:
linkText
- The Object used to find the element- Returns:
- The first found WebElement
-
findElementsByPartialLinkText
Returns all WebElements specified by a Partial Link Text- Parameters:
linkText
- The Object used to find the elements- Returns:
- All found WebElements
-
findElementByTagName
Returns the first WebElement specified by a Tag Name- Parameters:
name
- The Object used to find the element- Returns:
- The first found WebElement
-
findElementsByTagName
Returns all WebElements specified by a Tag Name- Parameters:
name
- The Object used to find the elements- Returns:
- All found WebElements
-
findElementByXpath
Returns the first WebElement specified by an XPath Expression- Parameters:
xpathExpression
- The Object used to find the element- Returns:
- The first found WebElement
-
findElementsByXpath
Returns all WebElements specified by an XPath Expression- Parameters:
xpathExpression
- The Object used to find the elements- Returns:
- All found WebElements
-
findElement
org.openqa.selenium.WebElement findElement(org.openqa.selenium.By by) Returns the first WebElement specified by a By Object- Parameters:
by
- The Object used to find the element- Returns:
- The first found WebElement
-
findElements
Returns all WebElements specified by a By Object- Parameters:
by
- The Object used to find the elements- Returns:
- All found WebElements
-
get
Load WebPage with the given URL in current Browser Window- Parameters:
url
- The URL of the specified WebPage
-
getCurrentUrl
String getCurrentUrl()Returns the String representation of the URL f the current WebPage- Returns:
- The String representation of the URL f the current WebPage
-
getPageSource
String getPageSource()Returns the source of the current WebPage- Returns:
- The source of the current WebPage
-
getTitle
String getTitle()Returns the Title of the current WebPage- Returns:
- The Title of the current WebPage
-
getWindowHandle
String getWindowHandle()Return an opaque handle to this window that uniquely identifies it within this driver instance- Returns:
- An opaque handle to this window that uniquely identifies it within this driver instance
-
getWindowHandles
Return a set of window handles which can be used to iterate over all open windows of this WebDriver instance by passing them to switchTo().WebDriver.Options.window()- Returns:
- A set of window handles which can be used to iterate over all open windows of this WebDriver instance by passing them to switchTo().WebDriver.Options.window()
-
manage
org.openqa.selenium.WebDriver.Options manage()Returns the Options interface for the WebPage- Returns:
- The Options interface for the WebPage
-
quit
void quit()Quit the Driver, closes all associated Windows -
switchTo
org.openqa.selenium.WebDriver.TargetLocator switchTo()Send future commands to a different frame- Returns:
- The TargetLocator for this WebPage
-
switchToFrameByClassName
Send future commands to the frame specified by Class Name- Parameters:
className
- The element used to identify the frame- Returns:
- The switched WebPage
-
switchToFrameByCssSelector
Send future commands to the frame specified by Css Selector- Parameters:
selector
- The element used to identify the frame- Returns:
- The switched WebPage
-
switchToFrameById
Send future commands to the frame specified by ID- Parameters:
id
- The element used to identify the frame- Returns:
- The switched WebPage
-
switchToFrameByLinkText
Send future commands to the frame specified by Link Text- Parameters:
linkText
- The element used to identify the frame- Returns:
- The switched WebPage
-
switchToFrameByName
Send future commands to the frame specified by Name- Parameters:
name
- The element used to identify the frame- Returns:
- The switched WebPage
-
switchToFrameByPartialLinkText
Send future commands to the frame specified by Partial Link Text- Parameters:
linkText
- The element used to identify the frame- Returns:
- The switched WebPage
-
switchToFrameByTagName
Send future commands to the frame specified by Tag Name- Parameters:
name
- The element used to identify the frame- Returns:
- The switched WebPage
-
switchToFrameByXpath
Send future commands to the frame specified by XPath Expression- Parameters:
xpathExpression
- The element used to identify the frame- Returns:
- The switched WebPage
-
switchToFrame
Send future commands to the frame specified by By Object- Parameters:
by
- The element used to identify the frame- Returns:
- The switched WebPage
-
waitForElementByClassName
Waits for an Object with specified Class Name- Parameters:
className
- The specified Object- Returns:
- The WebElement specified after the wait
-
waitForElementByClassName
Waits for an Object with specified Class Name with timeout- Parameters:
className
- The specified ObjectsecondsTimeout
- The Timeout- Returns:
- The WebElement specified after the wait
-
waitForElementByCssSelector
Waits for an Object with specified Css Selector- Parameters:
selector
- The specified Object- Returns:
- The WebElement specified after the wait
-
waitForElementByCssSelector
Waits for an Object with specified Css Selector with timeout- Parameters:
selector
- The specified ObjectsecondsTimeout
- The Timeout- Returns:
- The WebElement specified after the wait
-
waitForElementById
Waits for an Object with specified ID- Parameters:
id
- The specified Object- Returns:
- The WebElement specified after the wait
-
waitForElementById
Waits for an Object with specified ID with timeout- Parameters:
id
- The specified ObjectsecondsTimeout
- The Timeout- Returns:
- The WebElement specified after the wait
-
waitForElementByLinkText
Waits for an Object with specified Link Text- Parameters:
linkText
- The specified Object- Returns:
- The WebElement specified after the wait
-
waitForElementByLinkText
Waits for an Object with specified Link Text with timeout- Parameters:
linkText
- The specified ObjectsecondsTimeout
- The Timeout- Returns:
- The WebElement specified after the wait
-
waitForElementByName
Waits for an Object with specified Name- Parameters:
name
- The specified Object- Returns:
- The WebElement specified after the wait
-
waitForElementByName
Waits for an Object with specified Name with timeout- Parameters:
name
- The specified ObjectsecondsTimeout
- The Timeout- Returns:
- The WebElement specified after the wait
-
waitForElementByPartialLinkText
Waits for an Object with specified Partial Link Text- Parameters:
linkText
- The specified Object- Returns:
- The WebElement specified after the wait
-
waitForElementByPartialLinkText
Waits for an Object with specified Partial Link Text with timeout- Parameters:
linkText
- The specified ObjectsecondsTimeout
- The Timeout- Returns:
- The WebElement specified after the wait
-
waitForElementByTagName
Waits for an Object with specified Tag Name- Parameters:
tagName
- The specified Object- Returns:
- The WebElement specified after the wait
-
waitForElementByTagName
Waits for an Object with specified Tag Name with timeout- Parameters:
tagName
- The specified ObjectsecondsTimeout
- The Timeout- Returns:
- The WebElement specified after the wait
-
waitForElementByXpath
Waits for an Object with specified XPath expression- Parameters:
xpathExpression
- The specified Object- Returns:
- The WebElement specified after the wait
-
waitForElementByXpath
Waits for an Object with specified XPath expression with timeout- Parameters:
xpathExpression
- The specified ObjectsecondsTimeout
- The Timeout- Returns:
- The WebElement specified after the wait
-
waitForElement
org.openqa.selenium.WebElement waitForElement(org.openqa.selenium.By by) Waits for a specified By object- Parameters:
by
- The specified Object- Returns:
- The WebElement specified after the wait
-
waitForElement
org.openqa.selenium.WebElement waitForElement(org.openqa.selenium.By by, int secondsTimeout) Waits for a specified By object with timeout- Parameters:
by
- The specified ObjectsecondsTimeout
- The Timeout- Returns:
- The WebElement specified after the wait
-
driverWait
org.openqa.selenium.support.ui.WebDriverWait driverWait()Return a WebDriverWait with a default timeout- Returns:
- A WebDriverWait with a default timeout
-
driverWait
org.openqa.selenium.support.ui.WebDriverWait driverWait(int secondsTimeout) Return a WebDriverWait with a given timeout- Parameters:
secondsTimeout
-- Returns:
- A WebDriverWait with a given timeout
-
getWebDriver
org.openqa.selenium.WebDriver getWebDriver()Returns the WebDriver associated with this WebPage- Returns:
- The WebDriver associated with this WebPage
-
maximize
IWebPage maximize()Maximizes the WebPage -
waitForPageLoad
IWebPage waitForPageLoad()Waits for the page to fully load with the default timeout -
waitForPageLoad
Waits for the page to fully load with the given timeout -
takeScreenShot
Takes a screenshot of the current screen and stores it in the RAS- Throws:
SeleniumManagerException
-