ClickandWait not waiting for the next page to load for metrics

I am using RESTful API for scheduling tests. I pass in a multistep script which ends with the following.

logData 1
clickAndWait id=btnSubmit

The scripts clicks the submit button, but collects the metrics before the next page is loaded. I get no metrics for the target page i need to collect. I tried ExecandWait too by submitting using a javascript.

I get metrics sometimes but they are not consistent. Is there anything i am doing incorrectly

I can PM you the link to the tests.

play with “setActivityTimeout” in my similar cases it often helps

A PM to the test would help - that’s not an issue I’ve seen before.