[Wtr-general] hi, Is there a GOTO function for watir

Paul Carvalho tester.paul at gmail.com
Wed Mar 28 11:21:20 EDT 2007


No.

Read this important article : http://en.wikipedia.org/wiki/Spaghetti_code

Please rethink how you structure your code.  I *highly* recommend taking a
course on Programming Concepts and Design if you haven't done any formal
structured programming/scripting in a *long* time.

GOTO's bad.  Very, very bad.  =P

Good luck!  Cheers.


On 28/03/07, Maloy kanti debnath <forum-watir-users at openqa.org> wrote:
>
> hi,
>
>                 IS there any function which is simlar like VB 6.0 GOTO so
> that we can say
> if condition
>         goto line 8
> else
>         goto line 20
> end
>
>
> thanks
> Maloy
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20070328/cef78395/attachment.html 


More information about the Wtr-general mailing list