public void FindElementsByLinQTest()
        {
            WebDriver.Navigate().GoToUrl("https://stratusbeta.com/");

            LinkSe createNewSiteLink = new LinkSe(WebDriver, By.TagName("a"), i => i.Text == "Create a new site");
            createNewSiteLink.WaitUntilVisible();
        }
        public void ExtraElementInfoTest()
        {
            WebDriver.Navigate().GoToUrl("https://stratusbeta.com/");
            var r = new ElementSe(WebDriver, By.TagName("body")).Links;
            LinkSe CreateSiteLink = new LinkSe(WebDriver, By.LinkText("Create a new site"));
            Assert.AreEqual(CreateSiteLink.Url, "https://onrealm.org/Site/Create");

            DivSe buttonsDiv = new DivSe(WebDriver, By.CssSelector("#login form ul li div.buttons"));
            Assert.AreEqual(buttonsDiv.ClassName, "buttons");

            ButtonSe continueButton = new ButtonSe(WebDriver, By.Id("Continue"));
            Assert.AreEqual(continueButton.ElementTag, "input");
            Assert.AreEqual(continueButton.Value, "Continue");
            Assert.AreEqual(continueButton.Id, "Continue");
            Assert.AreEqual(continueButton.Type, "button");

            continueButton.Click();

            CheckBoxSe rememberMeCheckBox = new CheckBoxSe(WebDriver, By.Id("rememberMe"));
            Assert.AreEqual(rememberMeCheckBox.Title, "Check this box if you would like us to remember your user name and password for 6 months.");
            Assert.AreEqual(rememberMeCheckBox.Name, "rememberMe");
            Assert.AreEqual(rememberMeCheckBox.IsChecked, false);

            rememberMeCheckBox.Click();
            Assert.AreEqual(rememberMeCheckBox.IsChecked, true);

            LabelSe rememberMeLabel = new LabelSe(WebDriver, By.CssSelector("#login form ul.horizontal li p.buttons label"));
            Assert.AreEqual(rememberMeLabel.For, null);
            Assert.AreEqual(rememberMeLabel.Text, "Remember me");
        }
        public void ExtraElementInfoTest()
        {
            WebDriver.Navigate().GoToUrl("https://stratusbeta.com/");
            var r = new ElementSe(WebDriver, By.TagName("body")).Links;
            LinkSe CreateSiteLink = new LinkSe(WebDriver, By.LinkText("Create New Site"));
            Assert.AreEqual(CreateSiteLink.Url, "https://stratusbeta.com/Site/Create");

            DivSe buttonsDiv = new DivSe(WebDriver, By.CssSelector("#wrapper div#content fieldset div.formButtons"));
            Assert.AreEqual(buttonsDiv.ClassName, "formButtons rightAlign");

            ButtonSe continueButton = new ButtonSe(WebDriver, By.Id("Continue"));
            Assert.AreEqual(continueButton.ElementTag, "input");
            Assert.AreEqual(continueButton.Value, "Continue");
            Assert.AreEqual(continueButton.Id, "Continue");
            Assert.AreEqual(continueButton.Type, "submit");

            continueButton.Click();

            CheckBoxSe rememberMeCheckBox = new CheckBoxSe(WebDriver, By.Id("rememberMe"));
            Assert.AreEqual(rememberMeCheckBox.Title, "Check this box if you would like us to remember your user name and password for 6 months.");
            Assert.AreEqual(rememberMeCheckBox.Name, "rememberMe");
            Assert.AreEqual(rememberMeCheckBox.IsChecked, false);

            rememberMeCheckBox.Click();
            Assert.AreEqual(rememberMeCheckBox.IsChecked, true);

            LabelSe rememberMeLabel = new LabelSe(WebDriver, By.CssSelector("#content form fieldset div.leftColumn div.field label.inline"));
            Assert.AreEqual(rememberMeLabel.For, "rememberMe");
            Assert.AreEqual(rememberMeLabel.Text, "Keep me signed in.");
        }
        public void EdLinkTest()
        {
            WebDriver.Navigate().GoToUrl("http://w3schools.com/html/html_links.asp");

            var link = new LinkSe(WebDriver, By.LinkText("Visit W3Schools"));
            link.Click();
            Thread.Sleep(1000);

            var headerDiv = new DivSe(WebDriver, By.Id("headerdiv1"));
            Assert.IsTrue(headerDiv.Text.Contains("At w3schools.com you will learn how to make a website."));
        }