Instead of

>      if nil != add.wacValNewSub


Do:

    if add.wacValNewSub

But i think what you are really asking for is to have a logging interface built into Watir. It's a good idea...

Bret


On 1/26/06, Paatsch, Bernd <[EMAIL PROTECTED]> wrote:

Hello,

I have following code below and wonder if it can be done simpler -- in one line?


        ie2.radio(:name, add.wacTagNewSub).click
        $logger.log( "    Action: selected radiobutton " + add.wacTagNewSub + ".")
      end


_______________________________________________
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