Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Multi-browser and packaging problem #1238

Answered by mdmintz
c350147221 asked this question in Q&A
Discussion options

hi,
I want to re-encapsulate one floor through the BaseCase class, and you need to start multiple browsers, after the package __check _ scope method will throw it, ask this situation how to handle it?

You must be logged in to vote

If __check_scope() throws OutOfScopeException, it means that you're not calling setUp() for the scope of your SeleniumBase methods. You can try following the syntax formats listed here to help you stay on track: https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/syntax_formats.md
If you need another driver in your test, call self.get_new_driver(). Example test for that here: https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_multiple_drivers.py

Replies: 1 comment

Comment options

If __check_scope() throws OutOfScopeException, it means that you're not calling setUp() for the scope of your SeleniumBase methods. You can try following the syntax formats listed here to help you stay on track: https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/syntax_formats.md
If you need another driver in your test, call self.get_new_driver(). Example test for that here: https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_multiple_drivers.py

You must be logged in to vote
0 replies
Answer selected by mdmintz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /