selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element:

前端 未结 7 2251
长发绾君心
长发绾君心 2020-12-02 14:00

I\'m trying to automatically generate lots of users on the webpage kahoot.it using selenium to make them appear in front of the class, however, I get this error message when

7条回答
  •  春和景丽
    2020-12-02 14:01

    it just means the function is executing before button can be clicked. Example solution:

    from selenium import sleep
    # load the page first and then pause
    sleep(3)
    # pauses executing the next line for 3 seconds
    

提交回复
热议问题