Mark

The pickaxe book says "Regexps are created using the /.../ and %r{...} literals, and by the Regexp.new constructor. "

So use one of:
   appBox = $detailsFrame.checkbox(:value, Regexp.new( $applicationName ) ).click   ...OR...
   appBox = $detailsFrame.checkbox(:value, /#{$applicationName}/).click 

John


On 10/21/05, Mark Gargan < [EMAIL PROTECTED]> wrote:
Hi folks,

        I'm having a bit of bother using a variable as a regular _expression_
The code is as follows.


$applicationName="myApp"

appBox = $detailsFrame.checkbox(:value, /$applicationName/).click



the checkBox value I'm looking to match is

<input type="checkbox" name="selectedObjectIds"
value="myApp.ear/deployments/myApp"  ...

Any ideas how I use the value of the variable as the regexp to match
against?

Thanks,
Mark.

-----Original Message-----
From: smanish [mailto: [EMAIL PROTECTED]]
Sent: 21 October 2005 11:11
To: [email protected]
Subject: Re: [Wtr-general] selecting items in drop down list


My appologies.
I didnt even look manually when my search string was not correct.

Regards,
Manish

On 10/21/2005 03:38 PM, smanish wrote:

> I cant find anything in user-guide about
> how to select items from dropdown list.
> Does Watir support it?
> If so, how?
> THanks,
> Manish
>
>

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to