This is the code for my button in HTML:
<button type="submit" class="btn btn-secondary" id="single_button618eda460b64617" title="">Re-attempt quiz</button>
and the class I define for many other component and the id
always begin with single_button
.
but the end is random character. And it's the only one that starts with this prefix.
How can i use button=driver.find_element_by_id()
, but for the first single_button
?