示例#1
0
        public void SendUsernameAndPassword()
        {
            MultiClubesFunctions mcFunctions = new MultiClubesFunctions();

            mcFunctions.SearchElementByIdAndSendKeys("textBoxUsername", "qualidade");
            mcFunctions.SearchElementByIdAndSendKeys("textBoxPassword", "DeZer0@100");
            mcFunctions.SearchElementByIdAndClick("button");
        }
示例#2
0
        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");
            }
        }
示例#3
0
        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();
        }