@@ -531,7 +531,7 @@ def get_vertical_position(self, locator: str) -> int:
531531 return self .find_element (locator ).location ["y" ]
532532
533533 @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 ):
535535 """Clicks the button identified by ``locator``.
536536
537537 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):
553553 self ._click_with_modifier (locator , ["button" , "input" ], modifier )
554554
555555 @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 ):
557557 """Clicks an image identified by ``locator``.
558558
559559 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):
576576 self ._click_with_modifier (locator , ["image" , "input" ], modifier )
577577
578578 @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 ):
580580 """Clicks a link identified by ``locator``.
581581
582582 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):
598598 def click_element (
599599 self ,
600600 locator : str ,
601- modifier : Union [str , bool ] = False ,
601+ modifier : Union [bool , str ] = False ,
602602 action_chain : bool = False ,
603603 ):
604604 """Click the element identified by ``locator``.
0 commit comments