Forum Discussion

nomansial's avatar
nomansial
Occasional Contributor
3 years ago

Python wait for element visible

How to wait for an element to be visible on screen in python?

 

Delay(6000)
username = page.FindElement(USERNAME_XPATH)
username.SetText(CUSTOMER_USERNAME)

 

Currently, I'm using delay but I want to use the proper method to wait for an element until it is visible on screen.