Answer the question
In order to leave comments, you need to log in
How can you implement an explicit wait via JS if any waits return Component not initialized?
I want to implement explicit waits via JS, via driver.execute_script(явное ожидание)
When I try to implement wait via Selenium, I get an error:
selenium.common.exceptions.WebDriverException: Message: [Exception... "Component not initialized" nsresult: "0xc1f30001 (NS_ERROR_NOT_INITIALIZED
)
" The page will have time to load, and everything will be ok. But in this case, the test execution time returns many times.
How can you implement an explicit wait in JS?
I tried to find the answer on the net and found this solution:time.sleep(10)
self.driver.execute_script("return document.readyState")
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question