下面列出了怎么用org.openqa.selenium.interactions.internal.Coordinates的API类实例代码及写法,或者点击链接到github查看源代码。
@Override
public Coordinates getCoordinates()
{
if ( webElement instanceof Locatable )
{
if ( cachedCoordinates == null )
cachedCoordinates = ( (Locatable) webElement ).getCoordinates();
return cachedCoordinates;
}
else
return null;
}
@Override
public Coordinates getCoordinates()
{
try
{
return ((Locatable)delegate).getCoordinates();
}
catch (StaleElementReferenceException e)
{
reLocateElement();
return getCoordinates();
}
}
@Override
public Coordinates getCoordinates() {
throw noSuchElementException();
}