Watir and regexp

A

asmir.biscevic

We want to test a value given in a text field with a regular
expression. We are trying to do it this way:

@browser.text_field:)name,"vareeier").set("123456789")
@browser.text_field:)name,"vareeier").value.should_equal(/[0-9]{9}/)

This is not working for us. We also tried using
@browser.text_field:)name,"vareeier").value.matches(/[0-9]{9}/)
@browser.text_field:)name,"vareeier").verify_contains(/[0-9]{9}/)

None of these work.
Help....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

regexp issue 4
Minimum Total Difficulty 0
Watir 2.0 Released 0
Watir - finding element in form 2
New At WATIR 1
Newbie ruby watir exception handling 0
Embed tag with watir 0
watir::exception::Timeoutexception 0

Members online

Forum statistics

Threads
474,217
Messages
2,571,121
Members
47,724
Latest member
Farreach2565

Latest Threads

Top