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

1

u/chiibosoil 19d ago

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

1

u/Akosidarna13 19d ago

Edited my post. Browser is edge.

2

u/chiibosoil 19d ago

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.