© Courtney Zhan, Edited by Zhimin Zhan 2024
Z. Zhan (ed.)Selenium WebDriver Recipes in C#https://doi.org/10.1007/979-8-8688-0023-8_4

4. Button

Courtney Zhan1  
(1)
Fitzgibbon, QLD, Australia
 
Buttons can come in two forms: standard and submit buttons. Standard buttons are usually created by the button tag, whereas submit buttons are created by the input tag (normally within forms). See Figure 4-1.

A screenshot portrays a standard button labeled choose Selenium and a submit button within a form with the input field for a username.

Figure 4-1

Button examples

HTML source:
<button id="choose_selenium_btn" class="nav" data-id="123" style="font-size: 14px;">Choose ...

Get Selenium WebDriver Recipes in C#: Practical Testing Solutions for Selenium WebDriver now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.