File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -3300,7 +3300,7 @@ def __process_recorded_actions(self):
3300
3300
url2 = url1 [:- 3 ]
3301
3301
elif url2 .endswith ("/" ):
3302
3302
url2 = url2 [:- 1 ]
3303
- if url1 == url2 :
3303
+ if ( url1 == url2 ) or ( url1 == url2 . replace ( "www." , "" )) :
3304
3304
srt_actions [n ][0 ] = "f_url"
3305
3305
for n in range (len (srt_actions )):
3306
3306
if (
@@ -3688,6 +3688,8 @@ def __process_recorded_actions(self):
3688
3688
sb_actions .append ('self.%s(\' %s\' , "%s")' % (
3689
3689
method , action [1 ][0 ], action [1 ][1 ]))
3690
3690
elif action [0 ] == "as_te" or action [0 ] == "as_et" :
3691
+ import unicodedata
3692
+ action [1 ][0 ] = unicodedata .normalize ("NFKD" , action [1 ][0 ])
3691
3693
method = "assert_text"
3692
3694
if action [0 ] == "as_et" :
3693
3695
method = "assert_exact_text"
You can’t perform that action at this time.
0 commit comments