Skip to content

Commit 0a7f996

Browse files
authored
Merge pull request #1184 from seleniumbase/shadow-dom-updates-and-more
Update Shadow DOM methods and style guide implementation
2 parents b993671 + edf74b3 commit 0a7f996

File tree

9 files changed

+155
-120
lines changed

9 files changed

+155
-120
lines changed

examples/setup.cfg

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
[flake8]
2+
# W503,W504 (line break before or after binary operators)
23
exclude=recordings,temp
4+
ignore=W503,W504
35

46
[nosetests]
5-
# This is the config file for default values used during nosetest runs
67
# nocapture=1 displays print statements from output. Undo this by using: --nologcapture
78
# logging-level=INFO keeps the logs much cleaner than using DEBUG
89
nocapture=1
910
logging-level=INFO
11+
12+
[bdist_wheel]
13+
universal=1

examples/wordle_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def test_wordle(self):
7979
self.click(keyboard_base + button)
8080
button = 'button[data-key="↵"]'
8181
self.click(keyboard_base + button)
82-
self.sleep(1) # Time for the animation
82+
self.sleep(2) # Time for the animation
8383
row = 'game-app::shadow game-row[letters="%s"]::shadow ' % word
8484
tile = row + "game-tile:nth-of-type(%s)"
8585
letter_status = []

requirements.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ filelock==3.4.1;python_version>="3.6" and python_version<"3.7"
5151
filelock==3.4.2;python_version>="3.7"
5252
fasteners==0.16;python_version<"3.5"
5353
fasteners==0.16.3;python_version>="3.5" and python_version<"3.6"
54-
fasteners==0.17.2;python_version>="3.6"
54+
fasteners==0.17.3;python_version>="3.6"
5555
execnet==1.9.0
5656
pluggy==0.13.1;python_version<"3.6"
5757
pluggy==1.0.0;python_version>="3.6"
@@ -129,7 +129,8 @@ pdfminer.six==20211012;python_version>="3.6"
129129
# ("pip install -r requirements.txt" also installs this, but "pip install -e ." won't.)
130130

131131
coverage==5.5;python_version<"3.6"
132-
coverage==6.2;python_version>="3.6"
132+
coverage==6.2;python_version>="3.6" and python_version<"3.7"
133+
coverage==6.3;python_version>="3.7"
133134
pytest-cov==2.12.1;python_version<"3.6"
134135
pytest-cov==3.0.0;python_version>="3.6"
135136
flake8==3.7.9;python_version<"3.5"

seleniumbase/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# seleniumbase package
2-
__version__ = "2.4.1"
2+
__version__ = "2.4.2"

seleniumbase/core/jqc_helper.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -240,19 +240,19 @@ def jquery_confirm_full_dialog(driver, message, buttons, options=None):
240240
},"""
241241
)
242242
b1_html = (
243-
"""formSubmit: {
244-
btnClass: 'btn-%s',
245-
text: '%s',
246-
action: function(){
247-
jqc_input = this.$content.find('.jqc_input').val();
248-
$jqc_input = this.$content.find('.jqc_input').val();
249-
jconfirm.lastInputText = jqc_input;
250-
jqc_status = '%s';
251-
$jqc_status = jqc_status;
252-
jconfirm.lastButtonText = jqc_status;
253-
}
254-
},"""
255-
)
243+
"""formSubmit: {
244+
btnClass: 'btn-%s',
245+
text: '%s',
246+
action: function(){
247+
jqc_input = this.$content.find('.jqc_input').val();
248+
$jqc_input = this.$content.find('.jqc_input').val();
249+
jconfirm.lastInputText = jqc_input;
250+
jqc_status = '%s';
251+
$jqc_status = jqc_status;
252+
jconfirm.lastButtonText = jqc_status;
253+
}
254+
},"""
255+
)
256256
one_button_trigger = ""
257257
if len(buttons) == 1:
258258
# If there's only one button, allow form submit with "Enter/Return"

0 commit comments

Comments
 (0)