Validate a value from email

  • Retrieve the Email configurations
  • Connect to the email account and access the inbox folder
  • In order filter emails use this format
  • Retrieves emails that matches the above selection criteria and picks the last one
  • From that email uses regex to extract the information
    • \\d{6} → this will extract a 6 digit OTP that is all numbers
    • ^[A-Za-z]{8}$ → extracts an string of length 8 if both capital and small letters
  • Validate the retrieved value against the testdata

Have other questions? Access our full knowledge base!

Verified by MonsterInsights