public void SendUsernameAndPassword() { MultiClubesFunctions mcFunctions = new MultiClubesFunctions(); mcFunctions.SearchElementByIdAndSendKeys("textBoxUsername", "qualidade"); mcFunctions.SearchElementByIdAndSendKeys("textBoxPassword", "DeZer0@100"); mcFunctions.SearchElementByIdAndClick("button"); }
public void OpenCashMethod() { MultiClubesFunctions mcFunctions = new MultiClubesFunctions(); var dc = new DesiredCapabilities(); dc.SetCapability("app", @"\\tsidev\Triade\Application\Dev\MultiClubes\System\MultiClubes\MultiClubes.UI.application"); dc.SetCapability("debugConnectToRunningApp", true); RemoteWebDriver driver = new RemoteWebDriver(new Uri("http://*****:*****@100"); mcFunctions.SearchElementByIdAndClick("buttonUser"); mcFunctions.SearchElementByIdAndClick("buttonOK"); } }
public void CloseCashMethod() { MultiClubesFunctions mcFunctions = new MultiClubesFunctions(); MultiClubesMenus mcMenus = new MultiClubesMenus(); var dc = new DesiredCapabilities(); dc.SetCapability("app", @"\\tsidev\Triade\Application\Dev\MultiClubes\System\MultiClubes\MultiClubes.UI.application"); dc.SetCapability("debugConnectToRunningApp", true); RemoteWebDriver driver = new RemoteWebDriver(new Uri("http://*****:*****@100"); driver.FindElement(By.Id("buttonUser")).Click(); mcFunctions.WaitForElementLoad(By.Id("buttonOK")); driver.FindElement(By.Id("buttonOK")).Click(); }