Netsparker Web Application Security Scanner

How To Access Forms In WebDriver

(adsbygoogle = window.adsbygoogle || []).push({});

In this tutorial, we are going to learn about accessing HTML web forms and its elements such as input box, radio button, checkbox, hyperlink, dropdown box, etc. using Selenium WebDriver API.


Input Box:

There are two web elements that fall into this category. They are text box and password box.

Text Box:Text Box in HTML is represented by ‘input’ tag and has type ‘text’as shown below.

<b>First name:</b> <input type="text" name="firstname">

In the

Continue reading…