Relative Content

Tag Archive for pythonplaywrightplaywright-python

using playwright page.route function, some http headers disappear is this normal?

I’m trying to get playwright to be as close to a regular chrome browser instance as it can be, while also speeding up the loading by removing unneeded requests for things like images. While doing so I noticed that when I use the route function my http headers change substantially. Using the most up to date playwright and browsers as well.

Python: headless mode in Playwright doesn’t work

I have a really strange problem: starting my program with this headless=False option everything works correctly, pages are opened, buttons are clicked, in a nutshell Playwright does its job. As soon as I remove the headless mode or put headless=True, the program starts but closes after 1-2 seconds, doing absolutely nothing. (I notice this because it should return a .txt file to me).

what does exactly get_by_text return in playwright?

I have already read the documentation but I’m still kinda confused about get_by_text method in playwright python:
I have a small code demonstration that I try to get the selector of the text Sr. Enterprise Cloud & Snowflake Architect
then I just want to know the nature of that selector, is it a div or span or etc ..