seleniumbase 4.31.5__py3-none-any.whl → 4.31.6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- seleniumbase/__init__.py +4 -5
- seleniumbase/__version__.py +1 -1
- seleniumbase/console_scripts/run.py +14 -0
- seleniumbase/fixtures/shared_utils.py +6 -0
- {seleniumbase-4.31.5.dist-info → seleniumbase-4.31.6.dist-info}/METADATA +1 -1
- {seleniumbase-4.31.5.dist-info → seleniumbase-4.31.6.dist-info}/RECORD +10 -10
- {seleniumbase-4.31.5.dist-info → seleniumbase-4.31.6.dist-info}/LICENSE +0 -0
- {seleniumbase-4.31.5.dist-info → seleniumbase-4.31.6.dist-info}/WHEEL +0 -0
- {seleniumbase-4.31.5.dist-info → seleniumbase-4.31.6.dist-info}/entry_points.txt +0 -0
- {seleniumbase-4.31.5.dist-info → seleniumbase-4.31.6.dist-info}/top_level.txt +0 -0
seleniumbase/__init__.py
CHANGED
@@ -22,14 +22,13 @@ from seleniumbase import translate # noqa
|
|
22
22
|
|
23
23
|
with suppress(Exception):
|
24
24
|
import colorama
|
25
|
+
|
26
|
+
with suppress(Exception):
|
25
27
|
import pdbp # (Pdb+) --- Python Debugger Plus
|
26
28
|
|
27
|
-
is_windows = shared_utils.is_windows()
|
28
29
|
with suppress(Exception):
|
29
|
-
|
30
|
-
|
31
|
-
elif not shared_utils.is_linux():
|
32
|
-
colorama.init(autoreset=True)
|
30
|
+
shared_utils.fix_colorama_if_windows()
|
31
|
+
colorama.init(autoreset=True)
|
33
32
|
|
34
33
|
if sys.version_info[0] < 3 and "pdbp" in locals():
|
35
34
|
# With Python3, "import pdbp" is all you need
|
seleniumbase/__version__.py
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
# seleniumbase package
|
2
|
-
__version__ = "4.31.
|
2
|
+
__version__ = "4.31.6"
|
@@ -41,6 +41,7 @@ sbase grid-node start --hub=127.0.0.1
|
|
41
41
|
import colorama
|
42
42
|
import sys
|
43
43
|
import time
|
44
|
+
from contextlib import suppress
|
44
45
|
from seleniumbase.config import settings
|
45
46
|
from seleniumbase.fixtures import constants
|
46
47
|
from seleniumbase.fixtures import shared_utils
|
@@ -99,6 +100,7 @@ def show_basic_usage():
|
|
99
100
|
sc += '│ * For info on all commands => "sbase --help" │\n'
|
100
101
|
sc += "╰──────────────────────────────────────────────────╯"
|
101
102
|
sc += ""
|
103
|
+
bordered_sc = sc
|
102
104
|
if "linux" not in sys.platform:
|
103
105
|
c1 = colorama.Fore.BLUE + colorama.Back.LIGHTCYAN_EX
|
104
106
|
c2 = colorama.Fore.BLUE + colorama.Back.LIGHTGREEN_EX
|
@@ -110,6 +112,18 @@ def show_basic_usage():
|
|
110
112
|
sc = sc.replace("[COMMAND]", c3 + "[COMMAND]" + cr)
|
111
113
|
sc = sc.replace("--help", c4 + "--help" + cr)
|
112
114
|
sc = sc.replace("help", c4 + "help" + cr)
|
115
|
+
with suppress(Exception):
|
116
|
+
print(sc)
|
117
|
+
return
|
118
|
+
sc = bordered_sc.replace("╮\n", "")
|
119
|
+
sc = sc.replace("╭", "").replace("╮", "").replace("│", "")
|
120
|
+
sc = sc.replace("╰", "").replace("╯", "").replace("─", "")
|
121
|
+
if "linux" not in sys.platform:
|
122
|
+
sc = sc.replace("seleniumbase", c1 + "selenium" + c2 + "base" + cr)
|
123
|
+
sc = sc.replace("sbase", c1 + "s" + c2 + "base" + cr)
|
124
|
+
sc = sc.replace("[COMMAND]", c3 + "[COMMAND]" + cr)
|
125
|
+
sc = sc.replace("--help", c4 + "--help" + cr)
|
126
|
+
sc = sc.replace("help", c4 + "help" + cr)
|
113
127
|
print(sc)
|
114
128
|
|
115
129
|
|
@@ -1,4 +1,5 @@
|
|
1
1
|
"""Shared utility methods"""
|
2
|
+
import colorama
|
2
3
|
import os
|
3
4
|
import platform
|
4
5
|
import sys
|
@@ -67,6 +68,11 @@ def get_terminal_width():
|
|
67
68
|
return width
|
68
69
|
|
69
70
|
|
71
|
+
def fix_colorama_if_windows():
|
72
|
+
if is_windows():
|
73
|
+
colorama.just_fix_windows_console()
|
74
|
+
|
75
|
+
|
70
76
|
def format_exc(exception, message):
|
71
77
|
"""Formats an exception message to make the output cleaner."""
|
72
78
|
from selenium.common.exceptions import ElementNotVisibleException
|
@@ -1,9 +1,9 @@
|
|
1
1
|
sbase/__init__.py,sha256=02izDj786GVBT0bpSq2Q2O8uwSxtyT09pnobZz91ML8,605
|
2
2
|
sbase/__main__.py,sha256=G0bVB1-DM4PGwQ1KyOupaWCs4ePbChZNNWuX2htim5U,647
|
3
3
|
sbase/steps.py,sha256=bKT_u5bJkKzYWEuAXi9NVVRYYxQRCM1_YJUrNFFRVPY,42865
|
4
|
-
seleniumbase/__init__.py,sha256=
|
4
|
+
seleniumbase/__init__.py,sha256=OtJh8nGKL4xtZpw8KPqmn7Q6R-86t4cWUDyVF5MbMTo,2398
|
5
5
|
seleniumbase/__main__.py,sha256=dn1p6dgCchmcH1zzTzzQvFwwdQQqnTGH6ULV9m4hv24,654
|
6
|
-
seleniumbase/__version__.py,sha256=
|
6
|
+
seleniumbase/__version__.py,sha256=_L3K-0FrBhjwczwSd7zdpLQK9TBkFZzW6w5WivY-6XE,46
|
7
7
|
seleniumbase/behave/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
8
8
|
seleniumbase/behave/behave_helper.py,sha256=elkl8P9eLulRAioLstE9baYNM9N_PHBmAOcajX-pH_Y,24198
|
9
9
|
seleniumbase/behave/behave_sb.py,sha256=-hza7Nx2U41mSObYiPMi48v3JlPh3sJO3yzP0kqZ1Gk,59174
|
@@ -21,7 +21,7 @@ seleniumbase/config/settings.py,sha256=cAMmoFBQ6g8GCJIsRsSwGsP1_fJxhADxjHq30lFB1
|
|
21
21
|
seleniumbase/console_scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
22
22
|
seleniumbase/console_scripts/logo_helper.py,sha256=ZqS9TAwpcu5mM5ll-a0wTbXLs2Sbcsyo3EoC4jwtnME,2927
|
23
23
|
seleniumbase/console_scripts/rich_helper.py,sha256=U_zvXpalxVV8rtg8c8EnNNmnh45tii3AV5ZV3O3KbGA,2234
|
24
|
-
seleniumbase/console_scripts/run.py,sha256=
|
24
|
+
seleniumbase/console_scripts/run.py,sha256=t_mpBUIJLBrUtzJ5RQL5y8UVCTm7DhNyS94rHwIOnRs,58850
|
25
25
|
seleniumbase/console_scripts/sb_behave_gui.py,sha256=3Zl7_QQczvkkQW_UuaqYEUlEjiZ6AJzHR9GeNyVVXkc,15147
|
26
26
|
seleniumbase/console_scripts/sb_caseplans.py,sha256=qlmvjQ49bOBE1Q29fVmabimkVibCVr25GNtJhFPTMrc,18145
|
27
27
|
seleniumbase/console_scripts/sb_commander.py,sha256=yqoAK211OE6x5AWL2IAo8WojHtdkVj0AWqfoJ-ewmyo,13329
|
@@ -71,7 +71,7 @@ seleniumbase/fixtures/errors.py,sha256=KyxuEVx_e3MPhVrJfNIa_3ltMpbCFxfy_jxK8RFNT
|
|
71
71
|
seleniumbase/fixtures/js_utils.py,sha256=cYFRazc6iO2tTB5kf3_mW3czMQ8mJ5OSHldx7n31E8E,50940
|
72
72
|
seleniumbase/fixtures/page_actions.py,sha256=5xYWeTDLs9i1yOs5iWDk17CLoiUU5kRLHlmKRUJ7TcQ,63030
|
73
73
|
seleniumbase/fixtures/page_utils.py,sha256=5m7iXpikLs80TJoRO6_gEfXE1AKeQgcH1aFbR8o1C9A,12034
|
74
|
-
seleniumbase/fixtures/shared_utils.py,sha256=
|
74
|
+
seleniumbase/fixtures/shared_utils.py,sha256=G-M3mTCFsPscR65HTHIiRPBYFlRmBto6ZnV5VKxPk9A,5862
|
75
75
|
seleniumbase/fixtures/unittest_helper.py,sha256=sfZ92rZeBAn_sF_yQ3I6_I7h3lyU5-cV_UMegBNoEm8,1294
|
76
76
|
seleniumbase/fixtures/words.py,sha256=FOA4mAYvl3EPVpBTvgvK6YwCL8BdlRCmed685kEe7Vg,7827
|
77
77
|
seleniumbase/fixtures/xpath_to_css.py,sha256=lML56k656fElXJ4NJF07r35FjctrbgQkXUotNk7A-as,8876
|
@@ -126,9 +126,9 @@ seleniumbase/utilities/selenium_grid/start-grid-hub.bat,sha256=Ftq-GrAKRYH2ssDPr
|
|
126
126
|
seleniumbase/utilities/selenium_grid/start-grid-hub.sh,sha256=KADv0RUHONLL2_I443QFK8PryBpDmKn5Gy0s4o0vDSM,106
|
127
127
|
seleniumbase/utilities/selenium_ide/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
128
128
|
seleniumbase/utilities/selenium_ide/convert_ide.py,sha256=pZFnqEJQEKZPyNFjkLD29s2HPQgCrWW9XJWpCPhWOoM,31691
|
129
|
-
seleniumbase-4.31.
|
130
|
-
seleniumbase-4.31.
|
131
|
-
seleniumbase-4.31.
|
132
|
-
seleniumbase-4.31.
|
133
|
-
seleniumbase-4.31.
|
134
|
-
seleniumbase-4.31.
|
129
|
+
seleniumbase-4.31.6.dist-info/LICENSE,sha256=odSYtWibXBnQ1gBg6CnDZ82n8kLF_if5-2nbqnEyD8k,1085
|
130
|
+
seleniumbase-4.31.6.dist-info/METADATA,sha256=NvtR9CwvM90_tGj5YEewrN02rC1IlkZYsPLKHp5YNqo,85315
|
131
|
+
seleniumbase-4.31.6.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
132
|
+
seleniumbase-4.31.6.dist-info/entry_points.txt,sha256=CNrh2EKNaHYEhO6pP1RJyVLB99LkDDYX7TnUK8xfjqk,623
|
133
|
+
seleniumbase-4.31.6.dist-info/top_level.txt,sha256=4N97aBOQ8ETCnDnokBsWb07lJfTaq3C1ZzYRxvLMxqU,19
|
134
|
+
seleniumbase-4.31.6.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|