in reply to Re^3: Gui Automation using guitest
in thread Gui Automation using guitest

Any suggestion how to go about it? i tried like this if (("agree"|"accept")=~ /WMGetText($id)/)

Replies are listed 'Best First'.
Re^5: Gui Automation using guitest
by Anonymous Monk on Feb 16, 2011 at 10:00 UTC
Re^5: Gui Automation using guitest
by MidLifeXis (Monsignor) on Feb 16, 2011 at 14:02 UTC

    Instead of if (("agree"|"accept")=~ /WMGetText($id)/), how about if (WMGetText($id) =~ /^(agree|accept)$/). See perlre for more details.

    --MidLifeXis

      Thanks a lot for ur help. It really helped..