File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -6789,13 +6789,16 @@ def __check_scope(self):
6789
6789
from seleniumbase .common .exceptions import OutOfScopeException
6790
6790
message = (
6791
6791
"\n It looks like you are trying to call a SeleniumBase method"
6792
- "\n from outside the scope of your test class's `self` object."
6792
+ "\n from outside the scope of your test class's `self` object,"
6793
+ "\n which is initialized by calling BaseCase's setUp() method."
6794
+ "\n The `self` object is where all test variables are defined."
6795
+ "\n If you created a custom setUp() method (that overrided the"
6796
+ "\n the default one), make sure to call super().setUp() in it."
6793
6797
"\n When using page objects, be sure to pass the `self` object"
6794
6798
"\n from your test class into your page object methods so that"
6795
6799
"\n they can call BaseCase class methods with all the required"
6796
6800
"\n variables, which are initialized during the setUp() method"
6797
6801
"\n that runs automatically before all tests called by pytest."
6798
- "\n The `self` object is where all test variables are defined."
6799
6802
)
6800
6803
raise OutOfScopeException (message )
6801
6804
You can’t perform that action at this time.
0 commit comments