I've got a question about using time.sleep() to test Angular2 app. I do know that there is something like Protractor (and Pytractor) and you can use it when writing functional tests in Selenium. You can also use Explicit Waits. I found this info e.g. here: https://stackoverflow.com/a/29503381/6401796 But what about using time import? Is that even correct to write tests like that for Angular2 apps? My code:
import time
def open_login_page(self):
wd = self.wd
wd.get(localhost)
time.sleep(10)
I'm waiting here for all elements to show up. Thank you for considering my request.