public void Run(CoreTools coreTools) { // Table Tests coreTools.NavTo("https://en.wikipedia.org/wiki/List_of_Nintendo_Entertainment_System_games"); coreTools.FindElement("//table[@id='softwarelist']", "xpath"); coreTools.Table2Array(); }
public void Run(CoreTools coreTools) { //Form Tests coreTools.NavTo("https://www.seleniumeasy.com/test/basic-checkbox-demo.html"); coreTools.FindElement("isAgeSelected", "id"); Console.WriteLine("Get Value:\t" + coreTools.GetProperty("value")); coreTools.Click(); Console.WriteLine("Get Value:\t" + coreTools.GetProperty("value")); coreTools.NavTo("https://www.seleniumeasy.com/test/basic-first-form-demo.html"); coreTools.FindElement("at-cv-lightbox-close", "id", false); coreTools.Click(); Thread.Sleep(1000); coreTools.FindElement("user-message", "id", true); Thread.Sleep(3000); coreTools.SendKeys(" This is my test I Test "); Thread.Sleep(5000); Console.WriteLine("Get Value:\t" + coreTools.GetProperty("value")); Console.WriteLine("Get Value:\t" + coreTools.GetAttribute("placeholder")); }
public void Run(CoreTools coreTools) { // Find Element Tests coreTools.NavTo("http://www.ltaat.com"); coreTools.FindElement("//*[contains(text(),'LTAAT')]"); coreTools.SetAttribute("class", ""); coreTools.SetAttribute("style", "text-align:right,font-size:200"); Console.WriteLine("Attribute:\t" + coreTools.GetAttribute("style")); coreTools.FindElement("//a[text()='About the Founder']"); coreTools.FindElements("//a"); coreTools.Click(); }