Copy paste random generated Email ids in two different text fields | Selenium Forum
L
Lalith K Podduturi Posted on 04/01/2019

Hi, I am generating a random Email ID’s in my project for each registration; I have two fields for one for email and other to confirm the email. Do we have any method where it reads email id from first field and copy same email to confirm email field.

OR

Is there any way to keep email ID’s same in both fields.

Help appreciated.


A
Ashish Thakur Replied on 04/01/2019

You can use getAttribute('value') and read the email
And then you can type email into another textfield using sendkeys