sitespeed.io icon indicating copy to clipboard operation
sitespeed.io copied to clipboard

Tab Loads Instead of a Page

Open 2343909 opened this issue 8 months ago • 5 comments

Have you read the documentation?

URL

https://www.sitespeed.io/

What are you trying to accomplish

When I try to load a page on a Android device, a page tries to load as a tab (Please see attached image) and never loads a actual page because of it. I used to work fine so I am curious if a bug was introduced in the later versions of the sitespeed. When I manually select the tab to load, then it works fine.

[2025-04-24 13:08:25] INFO: Versions OS: win32 10.0.22631 nodejs: v20.11.0 sitespeed.io: 37.4.2 browsertime: 24.5.2 coach: 8.1.1 [2025-04-24 13:08:25] INFO: Axe version 4.10.2 plugin activated [2025-04-24 13:08:27] INFO: Run tests on SM-S901U [R5CT10NRCKA] using Android version 12 [2025-04-24 13:08:27] INFO: Running tests using Chrome - 3 iteration(s) [2025-04-24 13:08:31] INFO: Start to measure Homepage [2025-04-24 13:08:33] INFO: Navigating to url https://argo.webstaurantstore.com/ iteration 1 [2025-04-24 13:08:45] INFO: Will check again if the browser has navigated to the page [2025-04-24 13:09:05] INFO: Will check again if the browser has navigated to the page [2025-04-24 13:09:35] INFO: Will check again if the browser has navigated to the page [2025-04-24 13:10:16] INFO: Will check again if the browser has navigated to the page [2025-04-24 13:11:06] INFO: Will check again if the browser has navigated to the page

Image

What browser did you use?

Chrome

How to reproduce

Run a test on a mobile browser Android device using Chrome with the latest Sitespeed.io version with npm.

Log output

[2025-04-24 13:08:25] INFO: Versions OS: win32 10.0.22631 nodejs: v20.11.0 sitespeed.io: 37.4.2 browsertime: 24.5.2 coach: 8.1.1
[2025-04-24 13:08:25] INFO: Axe version 4.10.2 plugin activated
[2025-04-24 13:08:27] INFO: Run tests on SM-S901U [R5CT10NRCKA] using Android version 12
[2025-04-24 13:08:27] INFO: Running tests using Chrome - 3 iteration(s)
[2025-04-24 13:08:31] INFO: Start to measure Homepage
[2025-04-24 13:08:33] INFO: Navigating to url https://argo.webstaurantstore.com/ iteration 1
[2025-04-24 13:08:45] INFO: Will check again if the browser has navigated to the page
[2025-04-24 13:09:05] INFO: Will check again if the browser has navigated to the page
[2025-04-24 13:09:35] INFO: Will check again if the browser has navigated to the page
[2025-04-24 13:10:16] INFO: Will check again if the browser has navigated to the page
[2025-04-24 13:11:06] INFO: Will check again if the browser has navigated to the page

2343909 avatar Apr 24 '25 17:04 2343909

Hi @2343909 could it be a setting on your phone? I tried with Chrome 135 and I cannot reproduce.

soulgalore avatar Apr 25 '25 05:04 soulgalore

Hi @soulgalore Hmmm, I use I script with selenium (example.mjs) to load a page. I have not been changing any settings on the phone but I will take a look... Script:

/**
 *
 * @param {import('browsertime').BrowsertimeContext} context
 * @param {import('browsertime').BrowsertimeCommands} commands
 */
export default async function (context, commands) {
    const seleniumWebdriver = context.selenium.webdriver;
    const By = seleniumWebdriver.By;
    const seleniumDriver = context.selenium.driver;
    
    await commands.measure.start('Homepage');
    await commands.navigate('https://www.sitespeed.io/');
    await commands.wait.byPageToComplete();
    await commands.measure.stop();
}

2343909 avatar Apr 28 '25 12:04 2343909

I cleared the cache on the browser and that seamed to help. Not sure if this will be a long term fix.

2343909 avatar May 08 '25 17:05 2343909

The issue came back so I am just handling the tab within the script. Still not sure why it loads the browser as a tab. The phone settings appear to be fine.

2343909 avatar May 12 '25 18:05 2343909

Hmm this is strange I haven't been able to reproduce it.

soulgalore avatar May 17 '25 07:05 soulgalore