Consider the below code

b.element(name: /hello|username/).send_keys 'testid'


`/hello|username/` represents the or operator, that means it searches the name 
which is hello or username, how do I write regular expression which search for 
hello and username?

-- 
-- 
Before posting, please read 
https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group.
 
In short: search before you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]
--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/watir-general/4ee3a5cb-ab55-4339-9e38-b45cf0a3f158%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to