You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.
currently we are using time.sleep() method to tell system to wait for X seconds and after that run the next line of code. but we need a proper way to tell system wait until page loaded.
Problem
we do not know exactly how much would it take to load up Aparat pages. so putting a large number as sleep value, would make the script totally inefficient.
Solution
there is a proper way to do such a thing. we can use WebDriverWait which exists in selenium.webdriver.support.ui and takes 2 argument, first one would be the driver, and the second one is timeout value.
The text was updated successfully, but these errors were encountered:
currently we are using
time.sleep()
method to tell system to wait for X seconds and after that run the next line of code. but we need a proper way to tell system wait until page loaded.Problem
we do not know exactly how much would it take to load up Aparat pages. so putting a large number as sleep value, would make the script totally inefficient.
Solution
there is a proper way to do such a thing. we can use
WebDriverWait
which exists inselenium.webdriver.support.ui
and takes 2 argument, first one would be the driver, and the second one is timeout value.The text was updated successfully, but these errors were encountered: