An NDoc Documented Class Library |

# ISelenium.IsOrdered Method

Check if these two elements have same parent and are ordered siblings in the DOM. Two same elements will not be considered ordered.

bool IsOrdered(
string locator1,
string locator2
);

#### Parameters

locator1
  an element locator pointing to the first element
locator2
  an element locator pointing to the second element

#### Return Value

true if element1 is the previous sibling of element2, false otherwise

#### See Also

ISelenium Interface | Selenium Namespace