2

I am just starting to learn selenium but when I run the program it opens the chrome window for few seconds and then closes giving the error:

DevTools listening on ws://127.0.0.1:52176/devtools/browser/b5500769-96fb-4f99-85df-b05a11157eea
[11368:11308:0324/102029.198:ERROR:page_load_metrics_update_dispatcher.cc(194)] Invalid first_paint 5.369 s for first_meaningful_paint 5.287 s
[11368:11308:0324/102029.486:ERROR:page_load_metrics_update_dispatcher.cc(194)] Invalid first_paint 5.369 s for first_meaningful_paint 5.287 s
[11368:11308:0324/102029.757:ERROR:page_load_metrics_update_dispatcher.cc(194)] Invalid first_paint 5.369 s for first_meaningful_paint 5.287 s
[11368:11308:0324/102030.045:ERROR:page_load_metrics_update_dispatcher.cc(194)] Invalid first_paint 5.369 s for first_meaningful_paint 5.287 s

As I am new to selenium I dont have any idea why this error is showing up.

undetected Selenium
  • 183,867
  • 41
  • 278
  • 352
Ayush Meher
  • 29
  • 1
  • 4
  • 1
    please add the code snippet to better understand your problem, https://stackoverflow.com/help/minimal-reproducible-example – Ajeet Verma Mar 24 '23 at 05:29

1 Answers1

1

This error message...

[11368:11308:0324/102029.198:ERROR:page_load_metrics_update_dispatcher.cc(194)] Invalid first_paint 5.369 s for first_meaningful_paint 5.287 s
[11368:11308:0324/102029.486:ERROR:page_load_metrics_update_dispatcher.cc(194)] Invalid first_paint 5.369 s for first_meaningful_paint 5.287 s
[11368:11308:0324/102029.757:ERROR:page_load_metrics_update_dispatcher.cc(194)] Invalid first_paint 5.369 s for first_meaningful_paint 5.287 s

...indicates that there is a mismatch between the binary versions you are using.


Details

As per the comment within the discussion:

The supported configuration is to always match the version between Chrome and ChromeDriver - so when you are using Chrome 80, you should use Chrome 80. It is also possible to run ChromeDriver N with Chrome N+1, but this will always generate the warning you see. Most operations will complete successfully, but it is not the recommended approach.

The solution is to upgrade ChromeDriver to version 80: https://chromedriver.chromium.org/downloads


Solution

You need to ensure:

undetected Selenium
  • 183,867
  • 41
  • 278
  • 352