Issue 1:
System info

Playwright Version: [v1.31.1]

Operating System: [All, Windows 11, Ubuntu 20, macOS 13.2, etc.]

Browser: [All, Chromium, Firefox, WebKit]

Other info:

Source code

Code

page.screenshot(path=Path.cwd().parent / f"images/{page.title()}_screenshot.png", full_page=True)

Sence

[Describe expected behavior]

When I use the scrolling screenshot to take a screenshot of a long page, the page contains pictures. After the screenshot is completed, the relevant pictures in the page are missing, and the circle pattern being loaded is displayed. I try to set the waiting time, but it doesn't work. I want to ask whether there is a way to wait for the page elements to be loaded completely before scrolling the screenshot？

Issue 2:
System info

Playwright Version: 1.31.2

Operating System: Android 13

Browser: Chrome 112

"Enable command line on non-rooted devices" is enabled in chrome://flags.

Phone: Pixel 7 pro

Source code

Server script

async function launchAndroidServer() {
const browserServer = await _android.launchServer({
port: 5555,
wsPath: "ws",
});

const wsEndpoint = browserServer.wsEndpoint();
console.log("wsEndpoint:: ", wsEndpoint);
}

launchAndroidServer();

Client Script

const { _android } = require('playwright');

(async () => {
const device = await _android.connect(
'ws://127.0.0.1:5555/ws'
);

console.log(`Model :: ${device.model()}, serial:: ${device.serial()}`)

await device.shell('am force-stop com.android.chrome');
const context = await device.launchBrowser();

const page = await context.newPage();
await page.goto('https://playwright.dev/');

await page.close();
await context.close();
})();

Steps

Run the server script

Run the client script

Expected

The script should open chrome browser and perform the steps.

Actual

Chrome gets crashed. This behaviour isn't observed when I tried with Pixel 4 Android 12 emulator.

The following args are added into the file at /data/local/tmp/chrome-command-line

--disable-fre --no-default-browser-check --remote-debugging-socket-name=playwright-ed2eee3a7c8af55941c198437a6148a4 --disable-field-trial-config --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-sync --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf

The chrome gets crashed when I start the test. Also after stopping the client and server script, chrome gets crashed when opened. Chrome starts working after I remove chrome args added to /data/local/tmp/chrome-command-line.