Update __init__.py

This commit is contained in:
Michael Mintz 2022-02-25 18:08:31 -05:00
parent a3cbcdc2d6
commit 45e2016bad
1 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,5 @@
from seleniumbase.__version__ import __version__ # noqa
from selenium import webdriver
from seleniumbase.__version__ import __version__
from seleniumbase.core.browser_launcher import get_driver # noqa
from seleniumbase.fixtures import js_utils # noqa
from seleniumbase.fixtures import page_actions # noqa
@ -11,9 +12,12 @@ import sys
if sys.version_info[0] >= 3:
from seleniumbase import translate # noqa
if sys.version_info >= (3, 7):
webdriver.TouchActions = None # Lifeline for past selenium-wire versions
if sys.version_info >= (3, 10):
collections.Callable = collections.abc.Callable # Lifeline for "nosetests"
collections.Callable = collections.abc.Callable # Lifeline for nosetests
del collections # Undo "import collections" / Simplify "dir(seleniumbase)"
del sys # Undo "import sys" / Simplify "dir(seleniumbase)"
del webdriver # Undo "import webdriver" / Simplify "dir(seleniumbase)"
version_info = [int(i) for i in __version__.split(".") if i.isdigit()] # noqa