Saturday, 14 May 2016

What is Robot Class in Selenium WebDriver

Using Robot class, we can simulate keyboard event in Selenium.
To use keyboard event you have to use to method of Robot class.

Robot Class in Selenium Webdriver

keyPress()
keyRelease()
Each key has to be press and release respectively-

Scenario- Which cover enter key
1-Open Facebook.
2- Enter Username and password.
3- Using robot class press Enter button.

Program for  Robot Class in Selenium Webdriver

4 comments:

  1. My friend Suggest me this blog and I can say this is the best blog to get the basic knowledge.Thank you so much for this Selenium Training in Chennai blog

    ReplyDelete
  2. Thanks for the great information ,was looking for this information from long.Great blog SAP Basis Training in Chennai

    ReplyDelete
  3. Best blog.Got to learn new things.Thanks for this Blog SAP HR Training in Chennai blog

    ReplyDelete
  4. Great place to learn about the new things and got great knowledgeSAP MM Training in Chennai

    ReplyDelete