예제 #1
0
파일: Input.cs 프로젝트: AnnaKha/Frame
        public void SetJavaScriptText(string text)
        {
            WaitForDisplayed(Timeouts.Default);
            ((IJavaScriptExecutor)Driver.Instance).ExecuteScript("arguments[0].value = arguments[1]", WebElement, text);
            Actions action = new Actions(Driver.Instance);

            action.MoveByOffset(155, 155).Click().Build().Perform();
            Assert.That(GetValue.Equals(text));
            Logger.LoggingHelper.LogInformation("Increase/Decrease step is correct");
        }
예제 #2
0
파일: Input.cs 프로젝트: AnnaKha/Frame
        public void SetText(string text)
        {
            WaitForDisplayed(Timeouts.Default);
            WebElement.SendKeys(Keys.Control + "a");
            WebElement.SendKeys(Keys.Delete);
            WebElement.SendKeys(text);
            Actions action = new Actions(Driver.Instance);

            action.MoveByOffset(155, 155).Click().Build().Perform();
            Assert.That(GetValue.Equals(text));
        }