public void Close()
        {
            while (!Root.Displayed)
            {
                Thread.Sleep(1000);
            }

            CloseButton.Click();
        }
Пример #2
0
        public void Close()
        {
            WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(10));

            wait.Until(ExpectedConditions.ElementIsVisible(By.XPath("//div[@class='next-dialog next-closeable ui-newuser-layer-dialog']/a")));
            if (CloseButton.Enabled)
            {
                CloseButton.Click();
            }
        }
Пример #3
0
        public override PluginExecutionResult PerformAction()
        {
            WaitForAvailable(InstallationTimeout);

            Thread.Sleep(HumanTimeSpan);
            if (CloseButton.Click() != ResultCode.Passed)
            {
                return(new PluginExecutionResult(PluginResult.Failed, string.Format("Failed to proceed beyond {0} Screen", ScreenName)));
            }
            return(new PluginExecutionResult(PluginResult.Passed));
        }
Пример #4
0
        private static void CloseChat(String Telefone)
        {
            SearchCellphone = Driver.FindElement(By.XPath("/html/body/div[1]/div/div[4]/div[2]/form/div/div[1]/input"));
            //InputCellphone.Click();
            //Thread.Sleep(3000);
            SearchCellphone.SendKeys($"{Telefone}");

            SearchName = Driver.FindElement(By.XPath("/html/body/div[1]/div/div[5]/div/div/div/div/div[1]/div/div/ol/li[1]/a"));
            SearchName.Click();

            //caixa-cliente-2686206 id chat
            ///html/body/div[7]/div[2]/div/div/div/div/div/div/div/div[2]/span[2] Caixa de dialogo

            Chat = Driver.FindElement(By.XPath("/html/body/div[1]/div/div[5]/div/div/div/div/div[1]/div/div/ol/li[1]/a"));
            Chat.Click();

            CloseButton = Driver.FindElement(By.XPath("/html/body/div[1]/div/div[5]/div/div/div/div/div[2]/header/div[2]/a[7]/span"));
            //"/html/body/div[1]/div/div[9]/div/div/div[3]/button[1]"));
            //Thread.Sleep(2000);
            CloseButton.Click();

            ConfirmClose = Driver.FindElement(By.XPath("/html/body/div[1]/div/div[9]/div/div/div[3]/button[1]"));
            ConfirmClose.Click();
        }
 public void Close()
 {
     Browser.Wait();
     CloseButton.Click();
 }
 public void CloseCalculator()
 {
     CloseButton.Click();
 }
Пример #7
0
 private void The_Challenge_Is_Complete()
 {
     CloseButton.Click();
 }
Пример #8
0
 /// <summary>
 /// Close the datamanager
 /// </summary>
 public void Close()
 {
     CloseButton.Click();
 }
Пример #9
0
 public void SimulateGuiActions()
 {
     SaveButton.Click();
     CloseButton.Click();
 }