An idea to verify the correct format (eg: email format, phone number format) is simple. We need the “Regular Expression Pattern” of each format and using Selenium IDE to compare, the result will be Passed if your value match with Regular Expression Pattern, and Failed if your value does not match with that format pattern.

There are some common Regular Expression Pattern, but you can customize to meet the business if needed.

Email Regular Expression Pattern.

Generic email address.

Match a date in ‘mm/dd/yyyy’ format with any of the ‘-’, ‘/’, ‘.’ as separators.

Date Format (dd/mm/yyyy).

Password Regular Expression Pattern.

Username Regular Expression Pattern.

URL Regular Expression Pattern.


Example: Verify email and compare with Email Regular Expression Pattern by using Selenium IDE.

verifyText ____ css=h1 ____(Regular Expression Pattern)

Regular Expression Pattern

Leave a Comment

Your email address will not be published.