I am relatively new to Python. I am trying to do some web automation using Python Selenium Web Driver .
I will be writing separate scripts for different scenarios: example one for login,another to check for tooltips on the landing page and so on.
My problem is that I would like to use the same Firefox instance for all my test cases. So that after login my test script will work on the same logged in FireFox instance.
Please let me know how to achieve this.
Thanks,
Mohima
Don’t write separate scripts. Instead write different functions:
If you wish to place the functions in different files, that is no problem; you can import one module (e.g. tooltips.py) from the other: