Selenium 4 Beginner Tutorial 6 | Page Loading Strategies
YouTube Viewers YouTube Viewers
511K subscribers
14,931 views
0

 Published On Nov 30, 2021

All FREE courses - https://automationstepbystep.com/
00:00 Introduction
00:22 Normal
04:52 Eager
06:33 None

Page Loading Strategies
NORMAL
EAGER
NONE

Normal
waits for the entire page to be loaded
Se webdriver waits until the load event fire is returned

ChromeOptions chromeOptions = new ChromeOptions();
chromeOptions.setPageLoadStrategy(PageLoadStrategy.NORMAL);

By default normal is set to browser if none is provided

Eager
waits until the initial HTML document has been completely loaded and parsed
discards loading of stylesheets, images and subframes
Se webdriver waits until the DOMContentLoaded event fire is returned

ChromeOptions chromeOptions = new ChromeOptions();
chromeOptions.setPageLoadStrategy(PageLoadStrategy.EAGER);

None
When set to none Selenium WebDriver only waits until the initial page is downloaded

ChromeOptions chromeOptions = new ChromeOptions();
chromeOptions.setPageLoadStrategy(PageLoadStrategy.NONE);

#Selenium4Tutorials
Stories by Raghav - https://automationstepbystep.com/stor...
My Udemy Courses - https://automationstepbystep.com/udem...

Every LIKE & SUBSCRIPTION gives me great motivation to keep working for you

You can support my mission for education by sharing this knowledge and helping as many people as you can

If my work has helped you, consider helping any animal near you, in any way you can

Never Stop Learning
Raghav

show more

Share/Embed