Skip to content

Commit 1f88a5a

Browse files
committed
Better version info and improved compatibility
1 parent b9fdbbc commit 1f88a5a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

seleniumbase/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
from seleniumbase.__version__ import __version__ # noqa
2+
from seleniumbase.core.browser_launcher import get_driver # noqa
23
from seleniumbase.fixtures.base_case import BaseCase # noqa
34
from seleniumbase.masterqa.master_qa import MasterQA # noqa
45
from seleniumbase.common import decorators # noqa
56
from seleniumbase.common import encryption # noqa
7+
import collections
68
import sys
79

810
if sys.version_info[0] >= 3:
911
from seleniumbase import translate # noqa
12+
if sys.version_info >= (3, 10):
13+
collections.Callable = collections.abc.Callable # Lifeline for "nosetests"
14+
del collections # Undo "import collections" / Simplify "dir(seleniumbase)"
1015
del sys # Undo "import sys" / Simplify "dir(seleniumbase)"
16+
17+
version_info = [int(i) for i in __version__.split(".") if i.isdigit()] # noqa

0 commit comments

Comments
 (0)