private ShouldBeAbleToDetermineTheLocationOfAnElement ( ) : void | ||
Результат | void |
public void ShouldBeAbleToDetermineTheLocationOfAnElement()
{
driver.Url = xhtmlTestPage;
IWebElement element = driver.FindElement(By.Id("username"));
Point location = element.Location;
Assert.Greater(location.X, 0);
Assert.Greater(location.Y, 0);
}