Explain me how do you send enter/tab keys in webdriver?



Explain me how do you send enter/tab keys in webdriver?..

Answer / Quresh Ahamed

To send Enter or Tab keys in WebDriver, you can use the `sendKeys` method provided by Selenium WebDriver. For Enter key, you can use the `Keys.ENTER` constant and for Tab key, you can use the `Keys.TAB` constant.nnHere's an example of sending Enter key:n```javandriver.findElement(By.id("someId")).sendKeys(Keys.ENTER);n```nnAnd here's an example of sending Tab key:n```javandriver.findElement(By.id("someId")).sendKeys(Keys.TAB);n```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Automation Testing AllOther Interview Questions

Once you identify the tool what would be your next steps?

1 Answers  


What automating testing tools are you familiar with?

0 Answers  


What is mean by ARGO testing? can any one please explain

1 Answers  


whether flash selenium supports to test Gaming application? like follows: identifying the images, dynamic animations, Dynamic value changes field and win conditions etcc..,

1 Answers  


Highlight attributes of good framework?

1 Answers  


i am looking for HP QTP automated testing software, do you offers reselling this software or should i directly purchase with HP

1 Answers   HP,


What are the important operations in database testing?

1 Answers  


Explain what java api is required for generating pdf reports?

1 Answers  


can any one please tell me QTP 9.2 supports which version of IE and Mozilla firefox.

1 Answers  


Our QA department is on a look out for a system or a tool which lets our QA head monitor the overall test process and also monitor individual team members progress. Any suggestions please?

1 Answers  


Explain me how do you send enter/tab keys in webdriver?

1 Answers  


can you ple give me Quality Center interview questions and answer

5 Answers  


Categories