Skip to main content

Your bot logs in to a supplier's web portal every morning to download statements. It breaks every few weeks when the page changes, and now the portal asks for an OTP. What do you do?

Automation workflows · Intermediate 1

Short answer

First I ask the supplier for a supported way: an API, a scheduled email or an SFTP file. If the bot must stay, I make it stable: selectors based on labels, waits for elements, a check that the file is correct, screenshots and an alert on failure. The OTP stays with a person; I do not bypass it.

Deeper answer

Screen automation depends on something the other side can change at any time, so it is the last choice. A portal that adds an OTP is telling me it wants a person at login. Working around that can break the portal's terms and my company's security policy. So the first action is a conversation: many suppliers can send a statement by email or give API access when asked.

If there is no other way, I reduce breakage and make it visible. I select elements by stable labels or IDs, not by screen position. I wait for elements, not for fixed seconds. I check the result: the file exists, the date is correct, the row count is above zero. On failure the bot saves a screenshot and alerts the owner the same morning. For the OTP, a named person logs in and the bot continues in that session, or the download stays manual. Interviewers listen for the supported route first and for respect of the OTP.

What a strong answer covers

Answer it out loud in the mock interview about 2 min

Follow-ups to expect

Common mistakes

Learn it

RPA basics

Practice Automation workflows questions

More on this topic

Today's AI turns are used

Lessons, roadmaps, videos, practice cards and the code playground stay free with your account, with no limit.