2

How can I run multiple tests from different modules in one browser instance in Selenium? For example, if I have a test to login, and another tests to do an action after logging in, can I string these tests together? So that the webdriver logs in first, then conducts the second test? I'm using Python 2.7.5 to write the tests.

Thanks!

~Carpetfizz

1 Answer 1

1

This depends on capabilities of your test runner. Nose test framefowrk allows you to define package level setup methods as well as module, class, and method setups.

Another method for manually providing the browser instance from another class is described in this answer to similar question.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.