Where is documentation for window.awaitPerformanceObservation() method and is it still valid?

I'm looking at this repo for load testing looker dashboards with selenium (its very old): https://github.com/looker-open-source/looker-load-testing/blob/6c05299a01b5e432eaf83b1105a5bdc69047b...

It makes heavy use of `window.awaitPerformanceObservation("rendered")`

I can find no information about this method.

When I interactively login to looker is it available in the chrome console and works, but when I call it through selenium it seems to never fire.

What is this `window.awaitPerformanceObservation("rendered")` method? Is it official or is it an implementation detail the repo creator somehow found out about?

What javascript/DOM methods are available to me in my selenium tests to know when a dashboard page has fully loaded? How can I programmatically, through selenium, confirm a dashboard page is finished loading?

0 1 791
1 REPLY 1

Hi @red888, if embedding your dashboard, you can use Javascript embed events to track events like dashboard loading.

The awaitPerformanceObservation method isn't documented / supported publicly, so it is not recommended to be used as it could be subject to change or removal. Beyond the embed events approach mentioned above, there are currently no public API endpoints to monitor QA performance at a programmatic level in Looker.

If you'd like to see this as a feature, I can suggest raising a Feature Request (within Looker, in the top right "Help" Section --> Product Idea?) and reaching out to your Looker contact.