Testing_Selenium::isOrdered
Check if these two elements have same parent and are ordered siblings in the DOM. Two same elements will not be considered ordered.
Signature
public function isOrdered(string
$locator1,
string
$locator2 )
Parameters
-
$locator1
- an element locator pointing to the first element
-
$locator2
- an element locator pointing to the second element
Returns
- boolean
- true if element1 is the previous sibling of element2, false otherwise