예제 #1
0
 async def WaitIfElemExists(self, driver: webdriver, elemId: str,
                            waitTime: int):
     # wait til website loads
     await asyncio.sleep(1)
     while len(driver.find_elements_by_id(elemId)) > 0:
         print(f"Loading: {driver.find_elements_by_id(elemId)}")
         await asyncio.sleep(waitTime)