I want to find and click a button in a page by name or text. HTML:
<input name="ppw-widgetEvent:SetPaymentPlanSelectContinueEvent" class="a-button-input a-button-text" type="submit" aria-labelledby="pp-NKOnMC-86-announce">
Code trials:
WebDriverWait(driver, 5).until(EC.element_to_be_clickable((By.NAME, "name']"))).click()
PS: I think the element is dynamic, and in page stay 2 button with same function e name, therefore I can't use element by name.