Answer the question
In order to leave comments, you need to log in
How to improve code with click click through get_element_by_class_name with same classes of two elements?
If I write driver.execute_script("document.getElementByClassName('buttonDecline_3T_Jh')[0].click();") there is a click on the first button, but I need to recreate the click on the second button, but when writing driver.execute_script("document. getElementByClassName('button_306O5')[0].click();") the second button is not clicked.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question