File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
- from seleniumbase .__version__ import __version__ # noqa
1
+ from selenium import webdriver
2
+ from seleniumbase .__version__ import __version__
2
3
from seleniumbase .core .browser_launcher import get_driver # noqa
3
4
from seleniumbase .fixtures import js_utils # noqa
4
5
from seleniumbase .fixtures import page_actions # noqa
11
12
12
13
if sys .version_info [0 ] >= 3 :
13
14
from seleniumbase import translate # noqa
15
+ if sys .version_info >= (3 , 7 ):
16
+ webdriver .TouchActions = None # Lifeline for past selenium-wire versions
14
17
if sys .version_info >= (3 , 10 ):
15
- collections .Callable = collections .abc .Callable # Lifeline for " nosetests"
18
+ collections .Callable = collections .abc .Callable # Lifeline for nosetests
16
19
del collections # Undo "import collections" / Simplify "dir(seleniumbase)"
17
20
del sys # Undo "import sys" / Simplify "dir(seleniumbase)"
21
+ del webdriver # Undo "import webdriver" / Simplify "dir(seleniumbase)"
18
22
19
23
version_info = [int (i ) for i in __version__ .split ("." ) if i .isdigit ()] # noqa
You can’t perform that action at this time.
0 commit comments