Skip to content

Commit 45e2016

Browse files
committed
Update __init__.py
1 parent a3cbcdc commit 45e2016

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

seleniumbase/__init__.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
from seleniumbase.__version__ import __version__ # noqa
1+
from selenium import webdriver
2+
from seleniumbase.__version__ import __version__
23
from seleniumbase.core.browser_launcher import get_driver # noqa
34
from seleniumbase.fixtures import js_utils # noqa
45
from seleniumbase.fixtures import page_actions # noqa
@@ -11,9 +12,12 @@
1112

1213
if sys.version_info[0] >= 3:
1314
from seleniumbase import translate # noqa
15+
if sys.version_info >= (3, 7):
16+
webdriver.TouchActions = None # Lifeline for past selenium-wire versions
1417
if sys.version_info >= (3, 10):
15-
collections.Callable = collections.abc.Callable # Lifeline for "nosetests"
18+
collections.Callable = collections.abc.Callable # Lifeline for nosetests
1619
del collections # Undo "import collections" / Simplify "dir(seleniumbase)"
1720
del sys # Undo "import sys" / Simplify "dir(seleniumbase)"
21+
del webdriver # Undo "import webdriver" / Simplify "dir(seleniumbase)"
1822

1923
version_info = [int(i) for i in __version__.split(".") if i.isdigit()] # noqa

0 commit comments

Comments
 (0)