-
-
Notifications
You must be signed in to change notification settings - Fork 603
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
Error stopping measurement: Invalid time value #4285
Comments
Hi @PapaRoach25 thanks for creating the issue: I haven't seen Invalid time value before, can you share the exact error message/log line so I can see where it comes from? |
Thanks, let me catch those errors.I'll do a release this weekend. |
@soulgalore - do you have any updates regarding this issue? |
@PapaRoach25 can you try 35.1.1 ? I rewritten the HAR functionality but I couldn't reproduce I'm not sure that is fixed? |
@soulgalore - sorry for the late response, I've tried 35.1.1 and 35.1.2 but no luck, still observing the same issue. Is there any way how can I help you with reproducing this issue? |
Ok thanks for trying! Can you share the new trace log with the error? Thanks! |
Stack trace is the same: "RangeError: Invalid time value\n I've implemented tests for two applications that have a similar testing approach, but the main difference lies in their DOM structure, specifically involving elements within an iframe. I'm successfully handling the switch to and from the iframe using appropriate commands. However, I'm encountering an error despite managing iframe switching properly. For the second web application tests works as expected without any errors (iframe does not exist). |
Actually the error is the same, the trace is different :) I released 35.1.3 that should swallow that error, hopefully that helps. I would like a chrome trace from your test, then I can have a look at the root problem, I guess something is wrong in Chrome. I'll share how you get that later. |
@soulgalore - I've tested it with the latest version of sitespeed 35.2.0 and it's working now, it measures correctly, without any errors, thank you! |
Ok, thank you @PapaRoach25 . To get the trace file add |
Thank you for the suggestion. Unfortunately, the trace file contains sensitive project data that cannot be shared in its entirety. However, I'd be happy to provide specific sections of the file if that would be helpful. Please let me know which parts would be most useful. |
Your question
Hello, All
I'm experiencing an issue while calling the measure stop command (short example):
let menuXpath = await this.custom.findElementByXpathSelector("//*[contains(@class, 'settings')]"); await commands.measure.start("Home Page - Open Settings Menu"); await homePage.custom.clickByXpathAndWait(menuXpath); await commands.measure.stop();
I'm able to find an element, I'm also able to click on the element and see how the page is loading, but the measure.stop() it returns an error:
Error stopping measurement: Invalid time value
I even added hardcoded timeouts to wait after clicking by the XPath selector to be confident that the page was loaded, but I still, see the error.
INFO: Versions OS: win32 10.0.19045 nodejs: v22.9.0 sitespeed.io: 35.0.0 browsertime: 23.0.0 coach: 8.0.2
Could someone please help to resolve this issue?
Thanks in advance!
The text was updated successfully, but these errors were encountered: