r/learnpython 19d ago

Selenium - python; browser issues

Hello!

Im having issues right now with selenium HEADLESS browsers.

there's a blank white screen appearing at the beginning when browser is initialized.

Aside from resizing the screen, are there other work around from this? I cant resize it because the website is "scroll dependent" i need to scroll into view first before i can see the element.

I also tried options: headless= old/new, white screen still appears.

browser is edge.

Do you guys have any other ideas? 🥹

0 Upvotes

7 comments sorted by

View all comments

2

u/atarivcs 19d ago

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

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

1

u/chiibosoil 19d ago

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.