[wtr-general] Re: How to write and regular expression in WATIR?

2019-07-19 Thread Titus Fortner
Rubular is a great resource for trying things, and there are plenty of tutorials: https://rubular.com/ If you need both, you have a lot of options, but: /hello.*username/ On Saturday, June 22, 2019 at 9:52:28 AM UTC-7, rajagopalan madasami wrote: > > Consider the below code > > b.element(name:

[wtr-general] Re: How to write and regular expression in WATIR?

2019-07-19 Thread Chuck van der Linden
On Saturday, June 22, 2019 at 9:52:28 AM UTC-7, rajagopalan madasami wrote: > > 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