@@ -531,7 +531,7 @@ def get_vertical_position(self, locator: str) -> int:
531
531
return self .find_element (locator ).location ["y" ]
532
532
533
533
@keyword
534
- def click_button (self , locator : str , modifier : Union [str , bool ] = False ):
534
+ def click_button (self , locator : str , modifier : Union [bool , str ] = False ):
535
535
"""Clicks the button identified by ``locator``.
536
536
537
537
See the `Locating elements` section for details about the locator
@@ -553,7 +553,7 @@ def click_button(self, locator: str, modifier: Union[str, bool] = False):
553
553
self ._click_with_modifier (locator , ["button" , "input" ], modifier )
554
554
555
555
@keyword
556
- def click_image (self , locator : str , modifier : Union [str , bool ] = False ):
556
+ def click_image (self , locator : str , modifier : Union [bool , str ] = False ):
557
557
"""Clicks an image identified by ``locator``.
558
558
559
559
See the `Locating elements` section for details about the locator
@@ -576,7 +576,7 @@ def click_image(self, locator: str, modifier: Union[str, bool] = False):
576
576
self ._click_with_modifier (locator , ["image" , "input" ], modifier )
577
577
578
578
@keyword
579
- def click_link (self , locator : str , modifier : Union [str , bool ] = False ):
579
+ def click_link (self , locator : str , modifier : Union [bool , str ] = False ):
580
580
"""Clicks a link identified by ``locator``.
581
581
582
582
See the `Locating elements` section for details about the locator
@@ -598,7 +598,7 @@ def click_link(self, locator: str, modifier: Union[str, bool] = False):
598
598
def click_element (
599
599
self ,
600
600
locator : str ,
601
- modifier : Union [str , bool ] = False ,
601
+ modifier : Union [bool , str ] = False ,
602
602
action_chain : bool = False ,
603
603
):
604
604
"""Click the element identified by ``locator``.
0 commit comments