Hi George!

It all depends on your framework and how you're using global
variables.  I'm currently using a simple Test::Unit framework and my
browser variable is a global variable ($ie).  Since I use that one
browser for all my tests and it's easier than passing a local or
instance variable to all my test classes and methods, I don't see a
problem with it.

Global variables exist for a reason and used properly, can be a good
option.

Just my $0.02.

-Tiffany

On Apr 21, 10:08 am, George <[email protected]> wrote:
> Hello folks,
>
> As I've been learning Watir, I'm becoming more aware that assigning
> global variable to a browser (or assigning one to anything for that
> matter!) is a huge no-no.
>
> So, I guess my question is...should I change the variable type from $
> to @?  And if yes, will it understood by other custom libraries I
> include in my main script?
>
> I hope that makes sense...
>
> Thanks,
>
> George
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to