Please refer the below screenshot for the same :
The easy way to figure out how to do this is to open the Selenium IDE in Firefox, record a test in which you type some random text in the box, and then export the test case as Java code. That'll give you an example to work off of.
The easy way to figure out how to do this is to open the Selenium IDE in Firefox, record a test in which you type some random text in the box, and then export the test case as Java code. That'll give you an example to work off of.