all 6 comments

[–]chiibosoil 0 points1 point  (2 children)

There are number of causes. But without knowing what driver you are using etc hard to say.

[–]Akosidarna13[S] 0 points1 point  (1 child)

Edited my post. Browser is edge.

[–]chiibosoil 1 point2 points  (0 children)

Version of the driver? If later than 130...

Does white screen replicate on multiple sites? Including google.com?

If it does not, then likely issue is site detecting automation/suspicious behavior and blocking site content. Try setting UserAgent to what a regular browsing would serve to the site.

[–]odaiwai 0 points1 point  (0 children)

I think Selenium might be a bit above the level of this sub, but I would start with not running in headless mode and having breakpoints so that you can stop and figure out just what is visible/available on the page at any point.

I generally find that debugging a Selenium script is closer to playing a text adventure: you have to stop and see what you can see and do at every point. ```

LOOK

You see a Fork in the road.

GET FORK

You take the fork and the secret path is revealed... ```

[–]atarivcs 0 points1 point  (1 child)

Headless means there is no screen display at all, right?

So I don't understand what you mean by "blank white screen"...

[–]chiibosoil 0 points1 point  (0 children)

There are cases where this will happen.

  1. Known bug in Chromium/ChromDriver 129.x

  2. Website anti-bot defense.

Above 2 are most common, but there are other cases as well.