Beispiel #1
0
        public void MemberDataTest1(string browserName, string version)
        {
            driver = browser.GetDriver(browserName, version);

            driver.Navigate().GoToUrl("https://www.whatismybrowser.com/");
            IWebElement browserNameDiv = driver.FindElement(By.ClassName("string-major"));

            Assert.Contains(browserName, browserNameDiv.Text);
            Assert.Contains(version, browserNameDiv.Text);
        }
Beispiel #2
0
 public void Setup()
 {
     driver = browser.GetDriver(browserName, version);
     driver.Navigate().GoToUrl("https://www.whatismybrowser.com/");
 }