Class ImprovedRemoteWebElement
java.lang.Object
org.openqa.selenium.remote.RemoteWebElement
software.xdev.selenium.elements.remote.ImprovedRemoteWebElement
- All Implemented Interfaces:
org.openqa.selenium.interactions.Locatable,org.openqa.selenium.SearchContext,org.openqa.selenium.TakesScreenshot,org.openqa.selenium.WebElement,org.openqa.selenium.WrapsDriver,CanFindElements
public class ImprovedRemoteWebElement
extends org.openqa.selenium.remote.RemoteWebElement
implements CanFindElements
An improved
RemoteWebElement that
- Waits for the page to be loaded properly
- Automatically scrolls elements into the visible area if needed
- Uses the fallback JavaScript click function if the element couldn't be clicked
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected org.slf4j.Loggerprotected final StringFields inherited from class org.openqa.selenium.remote.RemoteWebElement
fileDetector, id, parentFields inherited from interface software.xdev.selenium.elements.CanFindElements
DEFAULT_WAIT_UNTIL_DURATION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclick()getText()org.openqa.selenium.WebDriverprotected org.slf4j.Loggerlogger()voidvoidvoidvoidsendKeys(CharSequence... keysToSend) voidwithAutoScrollIntoView(boolean autoScrollIntoView) Methods inherited from class org.openqa.selenium.remote.RemoteWebElement
clear, equals, execute, execute, findElement, findElements, getAccessibleName, getAriaRole, getAttribute, getCoordinates, getCssValue, getDomAttribute, getDomProperty, getId, getLocation, getRect, getScreenshotAs, getShadowRoot, getSize, getTagName, getWrappedDriver, hashCode, isDisplayed, isEnabled, isSelected, setFileDetector, setFoundBy, setId, setParent, submit, toJson, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.xdev.selenium.elements.CanFindElements
byAttribute, byClassNamePart, callFunction, determineSearchContext, elementProxyCreator, executeScript, waitForFirst, waitForFirst, waitForFirst, waitForFirst, waitForFirstAnd, waitForFirstByClassName, waitForFirstChained, waitUntil, waitUntil
-
Field Details
-
logger
protected org.slf4j.Logger logger -
waitForServerLoadToFinishFunction
-
autoScrollIntoView
protected boolean autoScrollIntoView
-
-
Constructor Details
-
ImprovedRemoteWebElement
-
-
Method Details
-
withAutoScrollIntoView
-
logger
protected org.slf4j.Logger logger() -
getWebDriver
public org.openqa.selenium.WebDriver getWebDriver()- Specified by:
getWebDriverin interfaceCanFindElements
-
click
public void click()- Specified by:
clickin interfaceorg.openqa.selenium.WebElement- Overrides:
clickin classorg.openqa.selenium.remote.RemoteWebElement
-
performJsClick
public void performJsClick() -
getText
- Specified by:
getTextin interfaceorg.openqa.selenium.WebElement- Overrides:
getTextin classorg.openqa.selenium.remote.RemoteWebElement
-
sendKeys
- Specified by:
sendKeysin interfaceorg.openqa.selenium.WebElement- Overrides:
sendKeysin classorg.openqa.selenium.remote.RemoteWebElement
-
prepareForOperation
public void prepareForOperation() -
scrollIntoViewIfRequired
public void scrollIntoViewIfRequired() -
waitForServerLoadToFinish
public void waitForServerLoadToFinish()
-