[wtr-general] Re: Best Way for Checking Name Fields?

2009-01-14 Thread rob
name_field_with_space = @browser.html.scan(/\sname\s*=\s*["\']\w+\s+ ["\']/i) assert(name_field_with_space.empty?, message="name tag field with trailing space found") This was the code I used to solve my problem. I used regex to get the name='whatever '. The scan method will search within the

[wtr-general] Re: Best Way for Checking Name Fields?

2009-01-13 Thread rob
Thanks for your suggestion. I work in a Mac environment and the script worked. However, I solved my problem using the .scan method, regex, and an assert. If anyone is curious how I did it, just ask. On Jan 12, 4:59 pm, gem dandy wrote: > Here ya go rob, > > ***

[wtr-general] Re: Best Way for Checking Name Fields?

2009-01-12 Thread gem dandy
Here ya go rob, *** =begin ## This is a short test to reveal the text in a entry box what is expected (or not expected). #---

[wtr-general] Re: Best Way for Checking Name Fields?

2009-01-12 Thread gem dandy
Hold the presses - I just ran another test on this and it doesn't pass when checking for the correct text. I'll post another update soon. gem dandy On Jan 12, 7:05 pm, gem dandy wrote: > Rob, > > Give the below script a  try. It puts 'whatever ' (with trailing > space) > into a text box in th

[wtr-general] Re: Best Way for Checking Name Fields?

2009-01-12 Thread gem dandy
Rob, Give the below script a try. It puts 'whatever ' (with trailing space) into a text box in this thread and then checks to see if it contains 'whatever' (no trailing space). *** =begin #