[Tutor] How to pass command line variables to this python code...

2009-07-14 Thread J Cook
Hello, I have some autogenerated code from Selenium which I cannot figure out how to pass some command line variables to. For example I could export the same in Perl and it would be for example: use strict; use warnings; use Time::HiRes qw(sleep); use Test::WWW::Selenium; use Test::More "no_

Re: [Tutor] How to pass command line variables to this python code...

2009-07-14 Thread J Cook
he quickest import sys print sys.srgv sys.argv will it output a array of all command line args ./selenium-google-test.py yankees will out put: ['selenium-google-test.py', 'yankees'] so args = sys.argv args[0] == 'yankees' True for a more functional way, check

Re: [Tutor] How to pass command line variables to this python code...

2009-07-15 Thread J Cook
Yeah, I figured that. I got it to work thanks, but I still don't understand how exactly. Coming from Perl I am used to a more procedural type of programming. BTW - Selenium is a great tool for web testing, and the way it will translate your web clickstream into your choice of languages rocks.