Element cannot locate with the text- selenium webdriver

前端 未结 2 907

Currently working on selenium webdriver and the using the language Java.

Log.info(\"Clicking on To weekrange dropdown\");
JavascriptExecutor executor25 = (J         


        
2条回答
  •  無奈伤痛
    2020-12-21 13:01

    You have some spacing issues:

    driver.findElement(By.id(" toWeek")));

    Should not have a space in the id:

    driver.findElement(By.id("toWeek")));

提交回复
热议问题