cancel
Showing results for 
Search instead for 
Did you mean: 

OTP coming from mail to be inserted in textbox

SOLVED
Highlighted
Occasional Contributor

OTP coming from mail to be inserted in textbox

Hi,

 

Can any one share jscript for below scenario :-

1. Open login page

2. enter user id

3. emter password

4.OTP generated in mail 

5.Capture OTP and insert into password textbox

Regards,

 

Naveen...

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Hero

Re: OTP coming from mail to be inserted in textbox

Looks to me like that thread explains how to get text out of the body of an email.  That should get your OTP.  For the rest of your request, isn't it just entering text in boxes?

 

What have you tried already and what happened when you did?

5 REPLIES 5
Community Hero

Re: OTP coming from mail to be inserted in textbox

You didn't specify what email you are using, but this may be of some help:

https://community.smartbear.com/t5/TestComplete-General-Discussions/How-to-get-the-text-of-an-email-...

Occasional Contributor

Re: OTP coming from mail to be inserted in textbox

I am using msoutlook.
Community Hero

Re: OTP coming from mail to be inserted in textbox

Then take a look at the thread I posted.  Someone asked a similar question before and it looks like there's an answer in there.

Occasional Contributor

Re: OTP coming from mail to be inserted in textbox

Sorry Marsha,

 

The said thread does not help me in any way.

Regards,

Naveen...

Community Hero

Re: OTP coming from mail to be inserted in textbox

Looks to me like that thread explains how to get text out of the body of an email.  That should get your OTP.  For the rest of your request, isn't it just entering text in boxes?

 

What have you tried already and what happened when you did?

New Here?
Join us and watch the welcome video:
Join the September Hub-bub to show off, learn and win