org.openqa.selenium.interactions.internal.Coordinates Java Examples
The following examples show how to use
org.openqa.selenium.interactions.internal.Coordinates.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MorelandWebElement.java From xframium-java with GNU General Public License v3.0 | 5 votes |
@Override public Coordinates getCoordinates() { if ( webElement instanceof Locatable ) { if ( cachedCoordinates == null ) cachedCoordinates = ( (Locatable) webElement ).getCoordinates(); return cachedCoordinates; } else return null; }
Example #2
Source File: LocatedElement.java From jsflight with Apache License 2.0 | 5 votes |
@Override public Coordinates getCoordinates() { try { return ((Locatable)delegate).getCoordinates(); } catch (StaleElementReferenceException e) { reLocateElement(); return getCoordinates(); } }
Example #3
Source File: NullTeasyElement.java From teasy with MIT License | 4 votes |
@Override public Coordinates getCoordinates() { throw noSuchElementException(); }