I want to obtain a value of an ID in a class. Example:
<div class="a_class_name_a" an_identifier="1" id="the_requered_id_like_54656"></div>
<div class="a_class_name_a" an_identifier="2" id="the_requered_id_like_4565"></div>
<div class="a_class_name_a" an_identifier="3" id="the_requered_id_like_12"></div>
<div class="a_class_name_b" an_identifier="4" id="the_requered_id_like_786"></div>
<div class="a_class_name_c" an_identifier="5" id="the_requered_id_like_566"></div>
How do I obtain the value "the_requered_id_like_786" of id with an_identifier="4" as my selection criteria using Selenium Webdriver and Python?