@@ -532,26 +532,29 @@ def main():
532
532
continue
533
533
534
534
if in_inefficient_wait :
535
- data = re .match (r'''^\s*if self.is_element_present\("([\S\s]+)"\)'''
536
- r''': break\s*$''' , line )
535
+ data = re .match (
536
+ r'''^\s*if self.is_element_present\("([\S\s]+)"\)'''
537
+ r''': break\s*$''' , line )
537
538
if data :
538
539
selector = data .group (1 )
539
540
command = '%sself.wait_for_element("%s")' % (
540
541
whitespace , selector )
541
542
seleniumbase_lines .append (command )
542
543
continue
543
544
544
- data = re .match (r'''^\s*if self.is_element_present\('([\S\s]+)'\)'''
545
- r''': break\s*$''' , line )
545
+ data = re .match (
546
+ r'''^\s*if self.is_element_present\('([\S\s]+)'\)'''
547
+ r''': break\s*$''' , line )
546
548
if data :
547
549
selector = data .group (1 )
548
550
command = "%sself.wait_for_element('%s')" % (
549
551
whitespace , selector )
550
552
seleniumbase_lines .append (command )
551
553
continue
552
554
553
- data = re .match (r'''^\s*if self.is_link_text_present'''
554
- r'''\("([\S\s]+)"\): break\s*$''' , line )
555
+ data = re .match (
556
+ r'''^\s*if self.is_link_text_present'''
557
+ r'''\("([\S\s]+)"\): break\s*$''' , line )
555
558
if data :
556
559
uni = ""
557
560
if '(u"' in line :
@@ -576,9 +579,10 @@ def main():
576
579
seleniumbase_lines = []
577
580
num_lines = len (lines )
578
581
for line_num in range (len (lines )):
579
- data = re .match (r'''^\s*self.wait_for_element'''
580
- r'''\((["|'])([\S\s]+)(["|'])\)'''
581
- r'''\s*$''' , lines [line_num ])
582
+ data = re .match (
583
+ r'''^\s*self.wait_for_element'''
584
+ r'''\((["|'])([\S\s]+)(["|'])\)'''
585
+ r'''\s*$''' , lines [line_num ])
582
586
if data :
583
587
# quote_type = data.group(1)
584
588
selector = data .group (2 )
@@ -603,9 +607,10 @@ def main():
603
607
seleniumbase_lines = []
604
608
num_lines = len (lines )
605
609
for line_num in range (len (lines )):
606
- data = re .match (r'''^\s*self.wait_for_link_text'''
607
- r'''\((["|'])([\S\s]+)(["|'])\)'''
608
- r'''\s*$''' , lines [line_num ])
610
+ data = re .match (
611
+ r'''^\s*self.wait_for_link_text'''
612
+ r'''\((["|'])([\S\s]+)(["|'])\)'''
613
+ r'''\s*$''' , lines [line_num ])
609
614
if data :
610
615
# quote_type = data.group(1)
611
616
link_text = data .group (2 )
0 commit comments