Hire QA – Specialized in QA Recruitment, Technical Interviews and Testing Solutions

Can we enter text without using sendKeys()?

Category: Selenium WebDriver

We can enter/ send text without using sendKeys() method. We can do it using JavaScriptExecutor.

JavascriptExecutor jse = (JavascriptExecutor) driver;
jse.executeScript("document.getElementById(‘Login').value=Test text without sendkeys");

Leave a Reply

Your email address will not be published. Required fields are marked *