D
D
Dmitry2019-09-18 08:53:52
selenium
Dmitry, 2019-09-18 08:53:52

Laravel Dusk. Is it possible not to wait for the page to fully load?

Good afternoon.
I'm doing browser tests on Laravel Dusk. There is a "heavy" page and a not very smart server, in short, the page takes a long time to load (3-8 seconds).
The elements needed for the tests are loaded almost immediately, but since dusk is waiting for the page to fully load, it’s already tired of waiting after each visit for 10+ seconds.
Is there a way to wait for a certain element on the page and start doing some actions (mouse, click) without waiting for the page to fully load?
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Emil Revencu, 2019-09-26
@drwhite87

Set in Selenium PageLoadStrategy='none'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question