Exemple #1
0
        public void RunAction()
        {
            // Create Action
            var action = new ClearFieldsAction();

            // Prepare state
            driver.FindElement(By.Id("name")).SendKeys("John Smith");
            driver.FindElement(By.Id("password")).SendKeys("12345");

            // Run action
            runner.Run(action);
        }
Exemple #2
0
        public static void RunAction(Runner runner)
        {
            // Create Action
            var action = new ClearFieldsAction();

            // Prepare state
            var driver = (WebDriver)runner.GetDriver();

            driver.Navigate().GoToUrl("https://example.testproject.io/web/");
            driver.FindElement(By.Id("name")).SendKeys(name);
            driver.FindElement(By.Id("password")).SendKeys(password);

            // Run action
            runner.Run(action);

            Thread.Sleep(1000);
        }
Exemple #3
0
        static void RunAction(Runner runner)
        {
            // Create Action
            var action = new ClearFieldsAction();

            // Get the Driver
            var driver = (IOSDriver <IOSElement>)runner.GetDriver();

            // Prepare the App
            driver.ResetApp();

            // Prepare state
            driver.FindElement(By.Id("name")).SendKeys("John Smith");
            driver.FindElement(By.Id("password")).SendKeys("12345");

            // Run action
            runner.Run(action);
        }