-
-
Notifications
You must be signed in to change notification settings - Fork 590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting [2023-05-22 04:56:14] ERROR: TypeError: Cannot convert undefined or null to object #3857
Comments
adding pre script step 09:55:34 [2023-05-22 16:55:34] INFO: Start of PreScript 09:55:57 [2023-05-22 16:55:57] INFO: sleep for sometime before clicking Continue Button |
Hi @vikasmishra1973 thanks for creating the issue! Can you try with the latest released version of sitespeed.io 27.6.4 (the version you are using are almost one year old), then it's easier for me to reproduce, try to fix it. Thanks! |
Thanks for responding. I pulled latest siteseped image. Errors a bit different:13:45:45 Pulling sitespeed.io (sitespeedio/sitespeed.io:27.6.4)... |
@soulgalore , Hi Peter, any pointer for me? |
Hi @vikasmishra1973 thanks for updating the issue. Hmm, I can see in the log that there's some kind of mismatch going on between the URLs (like somehow the data is attached to the wrong URL or something). Do you know where https://creativecloud.adobe.com/undefined comes? Undefined seems like something is wrong. Looking at the output, it looks like the first navigation to the page do not happen, if you look in the browser, are the browser already on that page?
Best |
Hi, I ran it locally on my mac with just one url: docker run --rm -v "$(pwd):/sitespeed.io" sitespeedio/sitespeed.io:27.6.4 --graphite.host=host.docker.internal https://creativecloud.adobe.com/cc --browsertime.preScript ./ccweb-susi.js --slug yourTestName --graphite.addSlugToKey true |
I'm having the same issue when using scripts to test a page. when my script is of the form:
I get the errors above, namely:
On the other hand, if my test script is of the form (same as documentation):
errors are gone... but the stop contidion on my check fails (it is a slow javascript animation that loads in about 11 seconds, and the progress bar gets stuck on about 4 seconds, causing the check to end prematurely). Not sure if (1) it shares the root cause for this case and the docker run, is pretty much the same, I just call a preScript (for login) and the test script using the multi option
Note: added here as I share the output errors, save for domain names, kindly let me konw if this comment needs to be deleted and added to a different bug ticket. |
Hi @PedroMSantosD I think your case is another issue. If I understand correctly, the tests stops too early in one of the cases? By default when you use a xxxWait command Browsertime waits on the onLoad event to happen. You can try run your test and add |
Hi Peter, for the pageCompletCheck condition, I do get different conditions using either "--pageCompleteCheckInactivity" or "--pageCompleteCheckNetworkIdle" or (default) end condition. the pageCompleteCheckInactivity gets a proper screenshot for the report summary, but the filstrip does not shows this transitions. This part is fully unrelated to the reported bug, and it is more of my use case and end condition (thanks). That being said, if my test scripts uses the commands.navigate(URL); command after the measure.start(alias) the errors are replicated in full. whereas if my test script uses the commands.navigate(URL) before the measure.start(alias), all errors listed here are gone. Will drop both cases off this ticket for sake of clarity. Thanks a lot!! |
Have you read the documentation?
URL
https://creativecloud.adobe.com/cc
What are you trying to accomplish
Logging on the url using pre script an d checking an element as to how much time it takes to load
What browser did you use?
Chrome
How to reproduce
Relevant log output
The text was updated successfully, but these errors were encountered: