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

--multi params , Redirection problem start measure throw error

Open linqunhe opened this issue 3 years ago • 1 comments

environment

docker: sitespeed v25.3.0 site router mode : hash site runtime : spa

config.json

{
  "browsertime": {
    "iterations": 3,
    "browser": "chrome",
    "viewPort": "1920x1080",
    "cpu": true,
    "timeouts": {
      "pageCompleteWaitTime": 8000
    },
    "spa": true,
    "prettyPrint": true
  },
  "utc": true,
  "summaryDetail": true,
  "html": {
    "showAllWaterfallSummary": true,
    "topListSize": 20,
    "logDownloadLink": true,
    "showScript": true
  },
  "filmstrip": {
    "showAll": true
  },
  "metrics": {
    "list": true
  },
  "useHash": true,
  "logToFile": true
}

Your question

The problem is roughly as follows:

If several files are run together, it will be reported that the element can not be found, and they will all be redirected to the starting bit, and then query the element and simulate the click. image

but , only run error file will be success ; image

What I have in common is that I redirect each file to the same link(same origin) and start other actions I need to do, such as finding elements, moving the cursor, and simulating clicks.

For this problem, I have tried the following behavior:

  1. Reload after navigate
  2. navigate + commands.wait.byTime
  3. navigate + commands.wait.byCondition (find elm)
  4. navigate + commands.wait.bySelector

rather than throw same error

linqunhe avatar Jul 01 '22 02:07 linqunhe

Hi @linqunhe I didn't fully get:

If several files are run together

Can you please share a little more on how you run?

For debugging you can try the --debug switch, checkout https://www.sitespeed.io/documentation/sitespeed.io/scripting/#debug

soulgalore avatar Jul 01 '22 09:07 soulgalore