What is difference between type() and typeKeys()?

 

  • type is used when you need to put some text in the input field. Just like a human enters value.
  • typeKeys simulates each keystroke. It is used when a page has some action while you are typing like autosuggest in search fields.

 

Top 20 Selenium Interview Questions

Selenium is a web application testing framework. It does not require scripts writing. It is easy to use. Selenium makes… Read More

4 years ago