Aug-22-2023, 12:35 PM
(This post was last modified: Aug-22-2023, 12:36 PM by Gaurav_Kumar.)
Yes, you can achieve this using Selenium in combination with Python. You can use the find_element_by_id method to locate the <select> elements by their id attribute, and then you can use the get_attribute method to retrieve the name attribute value.
Like this:-
Like this:-
month_select = driver.find_element_by_id("field_10_month") day_select = driver.find_element_by_id("field_10_day") year_select = driver.find_element_by_id("field_10_year")
month_name = month_select.get_attribute("name") day_name = day_select.get_attribute("name") year_name = year_select.get_attribute("name")