LifeOfQA

LifeOfQA

UI Wait vs API Polling

What I Learned from a Real Test Case

Deepak Karn's avatar
Deepak Karn
May 27, 2025
∙ Paid

Recently, I was working on automating a test case where we generate a report from our product. Once the report is ready, a Download button appears in the UI — but not instantly.

This process can take up to 5 minutes, depending on the report size and backend processing.

So I asked myself:

“Should we keep reloading the page until the button appears?
Or should…

User's avatar

Continue reading this post for free, courtesy of Deepak Karn.

Or purchase a paid subscription.
© 2026 Deepak Karn · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture