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
{{ message }}
Repository navigation
Commit cbf33a0
Browse filesBrowse the repository at this point in the historyBrowse files
Start Edge with a clean profile on Android (#2647)
Edge kept its data between tests, because it showed welcome screens when the data was removed. That left state from earlier tests, so Browsertime had to clear the cache and cookies, close restored tabs and leave an empty page behind, and Edge results were still not comparable with Chrome and Samsung Internet, which start with no data. Edge skips the welcome screens with --disable-fre, but when it starts with no data and no URL, as Chromedriver starts it, it shows its new tab page on top of the tab and never paints the measured page. It also asks for the notification permission again. Browsertime now clears the data itself, gives the permission and opens Edge once on a local error page, so Edge starts on a normal tab. This makes each Edge test about 20 seconds longer, and all the Edge code for this is in one place.
Assisted-by: Claude Opus 5.5 noreply@anthropic.com
To test with Edge, use `--android -b edge`. To test with Samsung Internet, use `--android -b samsung`. Edge shows welcome screens and dialogs when its data is removed, so Browsertime keeps its data and clears the cache and cookies before each test instead. Before the first test, open Edge on the phone and accept the welcome screen and the dialogs. Local storage and service workers are kept between tests. Samsung Internet starts with no data for each test, the same as Chrome. If the phone uses a dark theme, Samsung Internet also shows web pages in dark mode. To test the pages as most users see them, turn off the dark theme on the phone, for example with `adb shell cmd uimode night no`.
139
+
To test with Edge, use `--android -b edge`. To test with Samsung Internet, use `--android -b samsung`. Both start with no data for each test, the same as Chrome. Edge shows its new tab page on top of the page when it starts with no data, so before each test Browsertime opens Edge once with an error page. That makes each test about 20 seconds longer. If the phone uses a dark theme, Samsung Internet also shows web pages in dark mode. To test the pages as most users see them, turn off the dark theme on the phone, for example with `adb shell cmd uimode night no`.
140
140
141
141
To check that all Android features work with your phone, run `npm run test:android` in a Browsertime checkout. It tests Chrome and Firefox (use `npm run test:android -- --browser chrome` or `-- --browser firefox` to test only one) and prints which features pass. Add `--rooted` (for example `npm run test:android -- --rooted`) to also test `--android.rooted`, which changes the CPU, GPU and kernel settings on the phone until it reboots.
0 commit comments