Skip to main content

Every WebElement havehas a getLocation() method. You can get X and Y of the first element, then get X and Y of another element. After that just compare itthem to check which element is going first, and which is going next one.

Every WebElement have getLocation() method. You can get X and Y of first element, then get X and Y of another element. After that just compare it to check which element is going first, and which is next one.

Every WebElement has a getLocation() method. You can get X and Y of the first element, then get X and Y of another element. After that just compare them to check which element is going first, and which is going next.

Source Link
Pasha
  • 63
  • 2
  • 10

Every WebElement have getLocation() method. You can get X and Y of first element, then get X and Y of another element. After that just compare it to check which element is going first, and which is next one.