I'm a newbie on selenium and I wrote a little python script using selenium to test some functionalities on our website.
But I notice something strange in my code. I have several functions for example :
- Login to website
- List item
- Click on a link etc.
But, each time selenium hits the bottom of a function it closes the browser and I lose my session. This forces me to put all the test in just one function.
Is there a way to prevent this behavior? I'm using selenium RC not a Webdriver.
I figure it out :) It seems that wen you remove the test_ from the beginning of the function I can setup function wihtout the browser to be closed