Skip to content

Commit 9257879

Browse files
authored
Merge pull request #1057 from seleniumbase/multiple-recorder-updates
Multiple improvements to the Recorder and Recorder Mode
2 parents 9aba60f + 909d963 commit 9257879

File tree

7 files changed

+115
-102
lines changed

7 files changed

+115
-102
lines changed

help_docs/recorder_mode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<img src="https://seleniumbase.io/cdn/img/sb_recorder_notification.png" title="SeleniumBase" width="380">
88

9-
(This tutorial assumes that you are using SeleniumBase version ``2.1.2`` or newer.)
9+
(This tutorial assumes that you are using SeleniumBase version ``2.1.3`` or newer.)
1010

1111
🔴 To make a new recording with Recorder Mode, you can use ``sbase mkrec`` or ``sbase codegen``):
1212

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ packaging>=21.2;python_version>="3.6"
55
typing-extensions>=3.10.0.2
66
setuptools>=44.1.1;python_version<"3.5"
77
setuptools>=50.3.2;python_version>="3.5" and python_version<"3.6"
8-
setuptools>=58.5.2;python_version>="3.6"
8+
setuptools>=58.5.3;python_version>="3.6"
99
setuptools-scm==5.0.2;python_version<"3.6"
1010
setuptools-scm>=6.3.2;python_version>="3.6"
1111
tomli>=1.2.2;python_version>="3.6"
@@ -50,7 +50,7 @@ execnet==1.9.0
5050
pluggy==0.13.1;python_version<"3.6"
5151
pluggy==1.0.0;python_version>="3.6"
5252
py==1.8.1;python_version<"3.5"
53-
py==1.10.0;python_version>="3.5"
53+
py==1.11.0;python_version>="3.5"
5454
pytest==4.6.11;python_version<"3.5"
5555
pytest==6.1.2;python_version>="3.5" and python_version<"3.6"
5656
pytest==6.2.5;python_version>="3.6"
@@ -83,7 +83,7 @@ traitlets==4.3.3;python_version<"3.7"
8383
traitlets==5.1.1;python_version>="3.7"
8484
prompt-toolkit==1.0.18;python_version<"3.5"
8585
prompt-toolkit==2.0.10;python_version>="3.5" and python_version<"3.6.2"
86-
prompt-toolkit==3.0.21;python_version>="3.6.2"
86+
prompt-toolkit==3.0.22;python_version>="3.6.2"
8787
decorator==4.4.2;python_version<"3.5"
8888
decorator==5.1.0;python_version>="3.5"
8989
ipython==5.10.0;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.1.2"
2+
__version__ = "2.1.3"

seleniumbase/extensions/recorder.zip

58 Bytes
Binary file not shown.

seleniumbase/fixtures/base_case.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3300,7 +3300,7 @@ def __process_recorded_actions(self):
33003300
url2 = url1[:-3]
33013301
elif url2.endswith("/"):
33023302
url2 = url2[:-1]
3303-
if url1 == url2:
3303+
if (url1 == url2) or (url1 == url2.replace("www.", "")):
33043304
srt_actions[n][0] = "f_url"
33053305
for n in range(len(srt_actions)):
33063306
if (
@@ -3688,6 +3688,8 @@ def __process_recorded_actions(self):
36883688
sb_actions.append('self.%s(\'%s\', "%s")' % (
36893689
method, action[1][0], action[1][1]))
36903690
elif action[0] == "as_te" or action[0] == "as_et":
3691+
import unicodedata
3692+
action[1][0] = unicodedata.normalize("NFKD", action[1][0])
36913693
method = "assert_text"
36923694
if action[0] == "as_et":
36933695
method = "assert_exact_text"

0 commit comments

Comments
 (0)