[Question] could k6 browser function return a value to other functions?

[Question] could k6 browser function return a value to other functions?

Hi @brendaat,

Can you provide us with more details? What are you trying to achieve?

Thanks.

Hi @inancgumus , sure.
Sorry to reply late, I am just back from vacation.

Here is what I want it to look like, for example, I have a set of data saved on the web and have check() for checking, there are multiple checks in there, so I want to have a label to use when I am done with the web test, and that label can be returned to the last main function because I want to save the total result inside a csv file.

It works for API testing, I would like to know if the k6 browser can do the same thing?

Yes, it should be possible using handleSummary. Have you tried it?