@@ -116,7 +116,7 @@ def main():
116
116
if len (line .strip ()) == 0 :
117
117
continue
118
118
119
- # If .clear(), skip because .update_text () already does this
119
+ # If .clear(), skip because self.type () already does this
120
120
if line .strip ().endswith (".clear()" ):
121
121
continue
122
122
@@ -195,7 +195,7 @@ def main():
195
195
if "\\ [" in selector or "\\ ]" in selector or "\\ ." in selector :
196
196
raw = "r"
197
197
text = data .group (3 )
198
- command = '''%sself.update_text (%s'%s', '%s')''' % (
198
+ command = '''%sself.type (%s'%s', '%s')''' % (
199
199
whitespace , raw , selector , text )
200
200
seleniumbase_lines .append (command )
201
201
continue
@@ -249,7 +249,7 @@ def main():
249
249
whitespace = data .group (1 )
250
250
selector = '[name="%s"]' % data .group (2 )
251
251
text = data .group (3 )
252
- command = '''%sself.update_text ('%s', '%s')''' % (
252
+ command = '''%sself.type ('%s', '%s')''' % (
253
253
whitespace , selector , text )
254
254
seleniumbase_lines .append (command )
255
255
continue
@@ -302,7 +302,7 @@ def main():
302
302
whitespace = data .group (1 )
303
303
selector = '%s' % data .group (2 )
304
304
text = data .group (3 )
305
- command = '''%sself.update_text ('%s', '%s')''' % (
305
+ command = '''%sself.type ('%s', '%s')''' % (
306
306
whitespace , selector , text )
307
307
if command .count ('\\ "' ) == command .count ('"' ):
308
308
command = command .replace ('\\ "' , '"' )
@@ -333,7 +333,7 @@ def main():
333
333
whitespace = data .group (1 )
334
334
selector = '%s' % data .group (2 )
335
335
text = data .group (3 )
336
- command = '''%sself.update_text ("%s", '%s')''' % (
336
+ command = '''%sself.type ("%s", '%s')''' % (
337
337
whitespace , selector , text )
338
338
if command .count ('\\ "' ) == command .count ('"' ):
339
339
command = command .replace ('\\ "' , '"' )
@@ -680,7 +680,7 @@ def main():
680
680
data2 = re .match (regex_string , lines [line_num + 1 ])
681
681
if data2 :
682
682
continue
683
- regex_string = (r'''^\s*self.update_text \(["|']'''
683
+ regex_string = (r'''^\s*self.type \(["|']'''
684
684
'' + selector + ''
685
685
'' + r'''["|'], [\S\s]+\)\s*$''' )
686
686
data2 = re .match (regex_string , lines [line_num + 1 ])
0 commit comments