I tried to create a function with custom wait condition in Python. However, I get an error:
TypeError: \'bool\' object is not callable
what I really end up to do is using lambda
self.wait.until(lambda x: waittest(driver, "//div[@id="text"]", "myCSSClass", "false"))