-
Notifications
You must be signed in to change notification settings - Fork 675
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
window.performance missing in ClientFunction #3546
Comments
I've reproduced the problem. As a workaround, you can use const getLoadTime = async t => JSON.parse(await t.eval(() => JSON.stringify(window.performance.timing)));
console.log(await getLoadTime(t)); |
Thank you :) |
Hi Guys, I want to get window.performance.memory object with data inside in TestCafe. This "window.performance.memory" returns memory stats in Browser Console and I am not able to get the same through TestCafe. @AndreyBelym Can you take a look into this ? |
const getMemory = async t => JSON.parse(await t.eval(() => {
const { jsHeapSizeLimit, totalJSHeapSize, usedJSHeapSize } = window.performance.memory;
return JSON.stringify({ jsHeapSizeLimit, totalJSHeapSize, usedJSHeapSize });
})); |
Thank you @alexey-lin |
This issue has been automatically marked as stale because it has not had any activity for a long period. It will be closed and archived if no further activity occurs. However, we may return to this issue in the future. If it still affects you or you have any additional information regarding it, please leave a comment and we will keep it open. |
We're closing this issue after a prolonged period of inactivity. If it still affects you, please add a comment to this issue with up-to-date information. Thank you. |
What is your Test Scenario?
I want to get
window.performance
object with data insideWhat is the Current behavior?
Its empty
What is the Expected behavior?
Will be filled with the same data as i have inside the browser when i inspect the test using .debug()
What is your web application and your TestCafe test code?
Your website URL (or attach your complete example):
https://www.example.com
Steps to Reproduce:
Use example code above to see
{}
as a result instead of whats actually in the browser.Your Environment details:
The text was updated successfully, but these errors were encountered: