Is there any other way(not sendKeys) to enter text into textbox using selenium webdriver?

  • 1 Answer(s)

    Try JavaScriptExecutor  ->

    JavascriptExecutor js = (JavascriptExecutor)driver;

    js.executeScript(“document.getElementById(“id of  the textbox”).value=’Value you want to enter’;);

    Default Answered on December 1, 2018.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.