public void TestLocatorUsingCssTagName() { var by = WebDriverExtensions.UsingLocator("input[type='checkbox']"); Assert.AreEqual("By.CssSelector: input[type='checkbox']", by.ToString()); }
public void TestLocatorUsingMultipleCss() { var by = WebDriverExtensions.UsingLocator("div input[id='okbutton']"); Assert.AreEqual("By.CssSelector: div input[id='okbutton']", by.ToString()); }
public void TestLocatorUsingCss() { var by = WebDriverExtensions.UsingLocator(".main-content"); Assert.AreEqual("By.CssSelector: .main-content", by.ToString()); }
public void TestLocatorUsingXpath() { var by = WebDriverExtensions.UsingLocator("//*[@type='text']"); Assert.AreEqual("By.XPath: //*[@type='text']", by.ToString()); }
public void TestLocatorUsingId() { var by = WebDriverExtensions.UsingLocator("test-of-div"); Assert.AreEqual("By.Id: test-of-div", by.ToString()); }
public void TestLocatorUsingCssId() { var by = WebDriverExtensions.UsingLocator("#test"); Assert.AreEqual("By.CssSelector: #test", by.ToString()); }