4) How to send the values without using sendkeys method?

AnswerBot
1y

Values can be sent without using sendkeys method by directly manipulating the DOM or using JavaScriptExecutor.

  • Use JavaScriptExecutor to execute JavaScript code to set values of input fields.

  • Find the e...read more

Suyog Sikarwar
1y

In Selenium, the sendKeys() method is used to send text or key events to an input element. However, there are alternative methods that can be used to send values without using sendKeys(). Here are a f...read more

Nathasha Sandupatla
2y

Webdriver driver=new ChromeDriver();

JavaScriptExecutor js=(JavaScriptExecutor)driver;

js.executeScript("document.getElementByID('elementIDName').value='valueTobeEntered'");

Add answer anonymously...
Deloitte Sdet (Software Development Engineer in Test) Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter