{"id":7652,"date":"2023-11-06T11:38:42","date_gmt":"2023-11-06T06:08:42","guid":{"rendered":"https:\/\/python-programs.com\/?p=7652"},"modified":"2023-11-10T12:19:23","modified_gmt":"2023-11-10T06:49:23","slug":"how-to-locate-different-web-elements-in-selenium-using-python","status":"publish","type":"post","link":"https:\/\/python-programs.com\/how-to-locate-different-web-elements-in-selenium-using-python\/","title":{"rendered":"How To Locate Different Web Elements in Selenium Using Python?"},"content":{"rendered":"
An HTML page is made up of various HTML elements. When we automate a web page using Selenium, we first have to identify the HTML element uniquely on the web page and then perform an action on it. An HTML page can have HTML elements like a form, frame, table, dropdown, link, image, alerts, divs, spans, and many more. In this chapter, we will learn how to automate these elements through Selenium.<\/p>\n
Structure<\/strong><\/p>\n Objective<\/strong><\/p>\n An HTML page is made up of different HTML elements, for example, we see a form element, which contains a lot of input elements. The input elements could be a textbox, radio button, or checkbox. We can then have a table element, a dropdown element. In this chapter, we will see how we can automate these HTML elements.<\/p>\n Working with form elements<\/strong><\/p>\n An HTML form generally contains text boxes, buttons, links, images, radio buttons, and checkboxes type of elements. The HTML of the input elements in the form is represented as follows: The following table shows the different actions we generally perform on these elements using Selenium:<\/p>\n\n
\n<input type= “text\/checkbox\/radio\/password property=value..\/><\/p>\n