You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
you can try some of these examples and not sure if this can help -
private static Point getCenterPoint(WebElement element) {
Dimension size = element.getSize();
int halfWidth = size.getWidth() / 2;
int halfHeight = size.getHeight() / 2;
Point loc = element.getLocation();
int posX = loc.getX() + halfWidth;
int posY = loc.getY() + halfHeight;
Point point = new Point(posX, posY);
return point;
}
kindly help me on this
The text was updated successfully, but these errors were encountered: