You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm turning headless mode off while I debug, but all that is rendered is a black screen. When I run eval I see that the dom is there and can be interacted with for the website, however I can't see anything on the screen.
I've tried looking through the Browser Launcher options but I don't see anything that I think would help. Does anyone have a solution to this?
let playwright = Playwright::initialize().await.unwrap();
playwright.prepare().unwrap();
let chromium = playwright.chromium();
let browser = chromium.launcher().headless(false).launch().await.unwrap();
let context = browser.context_builder().build().await.unwrap();
let page = context.new_page().await.unwrap();
page.goto_builder("https://www.duckduckgo.com").goto().await.unwrap();
About my machine: Running Ubuntu 21.04
The text was updated successfully, but these errors were encountered:
randall-coding
changed the title
Browser has black screen when headless(false)
Browser has black screen when not headless
Jan 14, 2022
I realized my playwright was outdated because my rust compiler wasn't the latest. I upgraded to the latest version of rustc nightly, and this fixed the issue with firefox but not the black screen issue with chromium.
Upgraded playwright from 0.9 to 0.19. Using rust nightly 1.60
I'm turning headless mode off while I debug, but all that is rendered is a black screen. When I run eval I see that the dom is there and can be interacted with for the website, however I can't see anything on the screen.
I've tried looking through the Browser Launcher options but I don't see anything that I think would help. Does anyone have a solution to this?
About my machine: Running Ubuntu 21.04
The text was updated successfully, but these errors were encountered: