Create custom wait until condition in Python

后端 未结 4 1856
失恋的感觉
失恋的感觉 2021-01-04 09:39

I tried to create a function with custom wait condition in Python. However, I get an error:

TypeError: \'bool\' object is not callable

4条回答
  •  难免孤独
    2021-01-04 10:23

    what I really end up to do is using lambda

    self.wait.until(lambda x: waittest(driver, "//div[@id="text"]", "myCSSClass", "false"))
    

提交回复
热议问题