Validating text fields with standard formats (email addresses, phone numbers, etc)

I’m new to Selenium and Robot Framework, so I apologize if this is a silly question: is there a library with functions that can be used to test text fields with standard formats, such as (U.S.) phone numbers, email addresses, zip codes, etc?

I can write the code for various scenarios, but this seems like something that the open source community would’ve written/shared in the past.

Hi Tony,

I don’t know of any library that does that.

But if you don’t find one and decide to write one, I’ll suggest you look at the providers from the faker python module, as it kind of does the opposite it generates fake but valid values for these types of fields, so this might be a good source of validation strings and also help you provide international support for your library.

Hope that helps,