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...
Top Deloitte Sdet (Software Development Engineer in Test) interview questions & answers
Popular interview questions of Sdet (Software Development Engineer in Test)
Top HR questions asked in Deloitte Sdet (Software Development Engineer in Test)
>
Deloitte Sdet (Software Development Engineer in Test) Interview Questions
Stay ahead in your career. Get AmbitionBox app
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