R
R
rmfalx2017-08-16 17:44:04
Python
rmfalx, 2017-08-16 17:44:04

What commands do you use to delay between steps?

Prompt, what commands for a delay between steps it is better to use. I don't quite understand what the difference is.
self.driver.implicitly_wait(30)
self.driver.set_page_load_timeout(30)
time.sleep(3)
Please explain. if not difficult.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
gill-sama, 2017-08-16
@gill-sama

All your options are essentially the same.
1.implicitly_wait(n). Sets a delay to validate an element. i.e. if, when requesting an element, it did not appear in time n, then it will throw an error.
2. set_page_load_timeout(n). Sets the time for the page to fully load, if the page is not fully loaded throws an error.
3.sleep. sleep and in Africa sleep simply interrupts the execution of the program for n seconds.
For example, I use Explicit Waits .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question