Click an element on the page after clicking an element within an iFrame

Thanks again @inancgumus . I have another question relating to the browser metrics which we can see after the test successfully finishes. I am not sure this is the correct place to ask but when I run a test roughly I can see the following results:

 **browser_web_vital_cls.......: avg=0.501189** min=0.501189 med=0.501189 max=0.501189 p(90)=0.501189 p(95)=0.501189
 **browser_web_vital_fcp.......: avg=358.2ms**  min=358.2ms  med=358.2ms  max=358.2ms  p(90)=358.2ms  p(95)=358.2ms 
 browser_web_vital_fid.......: avg=500µs    min=500µs    med=500µs    max=500µs    p(90)=500µs    p(95)=500µs   
 browser_web_vital_inp.......: avg=72ms     min=72ms     med=72ms     max=72ms     p(90)=72ms     p(95)=72ms    
 browser_web_vital_lcp.......: avg=482.2ms  min=482.2ms  med=482.2ms  max=482.2ms  p(90)=482.2ms  p(95)=482.2ms 
 browser_web_vital_ttfb......: avg=112.5ms  min=74.2ms   med=112.5ms  max=150.79ms p(90)=143.13ms p(95)=146.96ms

In my script I am visiting more than one page for example

  1. Home page
  2. login page
  3. dashboard page after login

the report shows me
browser_web_vital_cls…: avg=0.501189
This result may include all three pages average value I think. Is there a way to get separate cls average values for the pages I visited in the test?

Lets say the following avg value does not meet our expectation
browser_web_vital_cls…: avg=0.501189
I can not understand which page has a problem, home page, login page or dashboard page.

For api tests fro example I am using tag option to differentiate the result values per api request in one script.

I hope I explained my question briefly.

Hi @meteboyaci11,

sorry for the delay in getting back to you. The summary isn’t great since it aggregates across all the web vital metrics for all the pages that the test visited, as you have already realised. If you want to be able to distinguish between them, then you will need to stream the data elsewhere to then perform queries on the data. You can find multiple ways to stream data to a choice of services in this documentation page. Once the data is there, you can also use grafana to visualise the data.

We have k6 in grafana cloud, which does what you want without the need to run your own infrastructure, check out this video on what we released recently.

Best,
Ankur