Hello, I am trying to extract a verification code from a email. What im doing right now is storing the full email then trying to split it up. When i try to split it up i get this error “undefined”
Here is a example of the email:
Hi Sdfgdsfs,
Welcome to Randomname! Please enter the code below to continue with your RandomName account application:
Email Verification Code: 001115
Please note the code will expire in 30 minutes.
Please contact our customer service team if you have any questions.
Sincerely,
Random Name.
I just need to extract and store the:001115
This is what i have right now in my code:
{
“Name”: “test”,
“CreationDate”: “2020-4-24”,
“Commands”: [
{
“Command”: “storeText”,
“Target”: “xpath=/html/body/main/div[1]/div/div[2]/div[2]/div/div[1]/div/div[2]/div[3]/pre”,
“Value”: “t”
},
{
“Command”: “storeEval”,
“Target”: "s1 = “{t}\"; r = s1.split (\":"); var s2 = r[1]; s2",
"Value": "t"
},
{
"Command": "echo",
"Target": "the extracted test is: {t}”,
“Value”: “blue”
},
{.
When running this i get the undefined error rather then the verification code. Can someone please help me out?