Not able to click on button in java selenium?

后端 未结 2 1743
离开以前
离开以前 2021-01-22 22:36

HTML code:

2条回答
  •  渐次进展
    2021-01-22 23:20

    You can try and get it by cssSelector instead. As far as I remember by className is only for one class.

    driver.findElement(By.cssSelector(".btn.btn-main.dropdown-toggle")).click();
    

提交回复
热议问题