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"); }
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)); }