Hi I’m trying to wait until something is present in my appium automation. I’m very new to appium but I’m writing this in python. I’ve been trying to debug the error but I really feel like I’m just not getting it.
When I wrote my code it was as such:
def find_text(self, text): wait = WebDriverWait(self.driver, 20) wait.until(self.driver.find_element_by_accessibility_id(text).is_displayed())
Which leads to the error: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/selenium/webdriver/support/wait.py:71: TypeError
What am I doing wrong? I feel like this is a lot simpler than what I’m making it out to be and I’m just overlooking something but it doesnt seem to make any sense as I’m able to find text using self.driver.find_element_by_accessibility_id(text).is_displayed() but when I try to use the above block of code I’m thrown an error. It doesnt seem to make any sense to me.