How to automate OTP for online transaction

I want to automate OTP for an online transaction. After enter all credit card details an OTP page will come at this URL ( ). That ask the OTP sent to my Gmail. Here’s a video of my task. Loom | Free Screen & Video Recording Software

The OTP page maybe has some tricky frames and Gmail is a big fat Javascript mess. Classic Dom automation with XPAth is tricky. => I would use visual automation with XClick and XType.

How to copy this OTP from here without OCR command?

Hai did you get solved

Without OCR: You can use XClickRelative to double or triple-click this number, then do XTYPE Ctrl+C and then you have the value in the !clipboard variable.

This technique is also used here to scrape text from a Chrome extension.