Skip to content

Commit e4187f0

Browse files
committed
Make improvements to Recorder Mode
1 parent 4c2e362 commit e4187f0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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)