Tag Archives: regular expression

how to use regular expression in selenium ide? – Matching Text Patterns

Please Refer Blog Entry – LINK

how to use Globbing Patterns in selenium? – Matching Text Patterns

Please Refer Blog Entry – LINK

how to use Exact Patterns in selenium? – Matching Text Patterns

Please Refer Blog Entry – LINK

how to use regular expression in selenium ide?

Patterns are really helpful toolbox for Selenium tests. Many commands in Selenium take the pattern parameter. Like locators, patterns are a type of parameter frequently required by Selenese commands. Examples of commands which require patterns are verifyTextPresentverifyTitleverifyAlert,assertConfirmationverifyText, and verifyPrompt. They enable you to match various content types on a web page – (a) Links (b) elements (c) text. There are chiefly three type of patterns you can use in your tests: globsexact and regular expressions.

  • glob:pattern:Match a string against a “glob” (aka “wildmat”) pattern. “Glob” is akind of limited regular-expression syntax typically used in command-lineshells. In a glob pattern, “*” represents any sequence of characters, and “?”represents any single character. Glob patterns match against the entire string.

We will try following Selenese commands on gmail.com using different text pattern.

verifyTitle Gmail: Email from Google glob:Gmail:*Google
verifyTextPresent Can’t access your account? glob:Can’t acc*ur account?
verifyText Lots of space glob:Lot*ace

Matching Text Patterns

  • regexp:regexp:Match a string using a regular-expression. The full power of JavaScript regular-expressions is available.
Regular Expression Pattern website field
Username Regular Expression Pattern regexp:^[a-z0-9_-]{3,15}$ gmail.com Username
Password Regular Expression Pattern regexp:((?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%]).{6,20}) gmail.com Username
Email Regular Expression Pattern regexp:^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$ gmail.com Username
generic email address regexpi:^[A-Z0-9+_.-]+@[A-Z0-9.-]+$ gmail.com Username
match a date in ‘mm/dd/yyyy’ format with any of the ‘-’, ‘/’, ‘.’ as separators. regexp:(0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])[- /.](19|20)\d\d gmail.com Username
Date Format (dd/mm/yyyy) regexp:(0?[1-9]|[12][0-9]|3[01])/(0?[1-9]|1[012])/((19|20)\\d\\d) gmail.com Username


Regular Expression Patterns


  • exact:string:Match a string exactly, verbatim, without any of that fancy wildcardstuff.
verifyTitle Gmail: Email from Google exact:Gmail: Email from Google
verifyTextPresent Can’t access your account? exact:Can’t access your account?
verifyText Lots of space exact:Lots of space


Exact Patterns




For a better web


News and reviews from the world of gadgets, gear, apps and the web

Digital Inspiration

Technology, Software and Internet

Thinkwareglobal's Blog

Just another WordPress.com weblog

Kenazari's Blog

Just another WordPress.com weblog

Richfowler1's Blog

Just another WordPress.com weblog

Romaicus's Blog

Just another WordPress.com weblog


Just another WordPress.com site


Just another WordPress.com site


Just another WordPress.com site


digital media expert blog

Different Journeys

Let's make life easier!

Thinking in Silverlight

Silverlight/WPF/Windows 8 Store App




Promoting Indian language Books

Actively Lazy

Software, crafted with passion


An ongoing discussion about SAP infrastructure

SAP Career

Your Career Mentor


Just another WordPress.com site

The secret product manager

Thoughts about product management, SUSE, Linux, Arm processors, High Performance Computing, Photography, Scouts BSA, Cloud, AIX, Power Systems, and other things that interest me

Simon Les Flex's Blog

SAP Process Integration Specialist - NOW WE CAN DO BETTER!

Oracle Technologies Primer

An Oracle Fusion Middleware and iPaaS blog!

Gilberto Holms

Java, Middleware, SOA Architecture Blog

The Skeleton

Java code skeletons, tips and pointers

J@n van Zoggel

Journal of a tech junkie

The Pragmatic Integrator

Hints and tips from a pragmatic integration specialist


The pace of life..

Optimalbg's Blog

Just another WordPress.com site

IT Jobs in USA

Keep the track of this Blog if you are looking out for some good Opportunities to work in USA....

Referral Jobs | Right Place to Get a Job

Hurry you are one Click away to get a job - Fresher and High paid jobs for well Experienced IT professionals on Referal jobs.

Michael Korn's Blog

Musings on Life, Career, Faith and Technology


Just another WordPress.com weblog


.Net Core, AspNetCore, Entity Framework, Entity Framework Core, AspNetIdentity, AspNetIdentityCore, Unit Test, WCF, Workflows

Expertqtp's Weblog

Just another WordPress.com weblog

Sai Chamarthi

Experienced Testing Professional


A great WordPress.com site

Suresh4qtp's Blog

Just another WordPress.com site


This WordPress.com site is the cat’s pajamas

It's always something...

Just another WordPress.com weblog

Faculty of Information Technology - Lê Ngọc Tiến

Be Yourself! Simplify Our Goals! Nothing is Impossible!

Anti-Malware Testing

Thoughts on security product testing past and present

Methods & Tools

Practical knowledge for the software developer, tester and project manager

Mindscripts Software Testing Training Institutes In Pune

Software Testing In Pune, Software Testing Training In Pune, Software Testing Training Institute,Software Testing Training Institutes In Pune ,Software Testing Training Centers,Software Testing Classes In Pune,,Software Testing Courses Pune, Software Testing Certification In Pune,,software testing certification course in pune,software testing certification institutes in pune

edington associates

Working with organizations to develop sustainable and thriving workplaces and people.

Enterprise WordPress hosting, support, and consulting - WordPress VIP

Our best-in-class enterprise WordPress hosting platform, expert consulting and support, and diverse partner ecosystem free you to focus on your business objectives.

WORK Online

Virtual Office at HOME