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.
gardo
- 325
- 2
- 14