Ask on Web Page
Shows a banner at the top of the web page with your message, up to three buttons and, if you like, a box to type in, then waits for you. For what only a person can do on the page: solve a check, type a code from an email, or look over an order and approve it. The page stays usable around the banner, and the banner follows the tab to its next pages. Continues on the button clicked, with its text in Button and what was typed in Text; on Button 1 by itself once the element in Also ends when is on the page; on Timed out when nothing ended it in time; or on Failed when there's no tab or the page can't show it. The browser comes to the front; a browser running in the background is opened in a window first.
Settings
| Setting | Starts as | What it does |
|---|---|---|
Message * ${} |
Solve the check on this page, then click Continue. |
|
Button 1 ${} |
Continue |
The main button. Enter in the box clicks it too. |
Button 2 ${} |
Skip |
Leave it empty to leave this button out. |
Button 3 ${} |
empty | Leave it empty to leave this button out. |
| Ask for text | Off |
Adds a box to type in; what's typed comes out in Text. Not for passwords: the web page could read what's typed here. |
Hint in the box ${} |
empty | Gray text in the empty box, such as Code from the email. |
Also ends when ${} |
empty | Optional: once this is on the page, the banner goes and the step continues on Button 1 by itself, such as text=Welcome after you sign in. One way per line, as in Click Web Element. |
| Give up after (ms) | 0 |
0 waits until a button is clicked (or the element in Also ends when is there). Otherwise it continues on Timed out after this long. |
Tab ${} |
empty | Which tab: wire a Tab output here. Empty uses the tab this macro opened or switched to last. |
Settings marked ${} take variables. * is required.
Where it continues
- Button 1 when Button 1 is clicked.
- Button 2 when Button 2 is clicked.
- Button 3 when Button 3 is clicked.
- Timeout when nobody answers in time.
- Failed when it fails; the reason is in the run log.
Outputs
| Button | The clicked button's text; empty when it timed out or ended by itself. |
|---|---|
| Text | What was typed in the box; empty without Ask for text. |
| Tab | The tab it asked in (a new window's tab when the browser ran in the background). |
| Error | Why it didn't work; empty when it did. |
More in Browser: Back, Forward or Reload, Browser Window, Click Web Element
Build macros with Ask on Web Page in MacroWin. Free to download, no account needed. Windows 10 and 11.
Download