How can I click the second submit button with Selenium webdriver?

前端 未结 1 797
无人共我
无人共我 2021-01-29 12:53

Example

For the first button:



        
相关标签:
1条回答
  • 2021-01-29 13:40

    By name may not be specific enough in this case. You could try the CSS selector below. Are you use the button is visible and enabled when you are trying to click it?

    List<WebElement> btn = driver.findElements(By.cssSelector("input[name='submit_upload']"));
    btn.get(1).click();
    
    0 讨论(0)
提交回复
热议问题