@@ -43,11 +43,11 @@ async def browser_press_key(self, key: str):
4343 """
4444 await self ._page .keyboard .press (key )
4545
46- async def browser_type (self , text : str ):
46+ async def browser_type (self , selector : str , text : str ):
4747 """
4848 Type text into the focused element.
4949 """
50- await self ._page .type (text )
50+ await self ._page .type (selector , text )
5151
5252 async def browser_click (self , selector : str ):
5353 """
@@ -73,17 +73,17 @@ async def browser_hover(self, selector: str):
7373 """
7474 await self ._page .hover (selector )
7575
76- async def browser_select_option (self , selector : str ):
76+ async def browser_select_option (self , selector : str , value : str ):
7777 """
7878 Select an option from a given element.
7979 """
80- await self ._page .select_option (selector )
80+ await self ._page .select_option (selector , value )
8181
8282 async def browser_mouse_click_xy (self , x : int , y : int ):
8383 """
8484 Click at a given x, y coordinate using the mouse.
8585 """
86- await self ._page .mouse .click (x , y )
86+ await self ._page .mouse .click (x , y , delay = 100 )
8787
8888 def run_js (self , js : str ):
8989 js_result = self ._loop .run_until_complete (self ._page .evaluate (js ))
0 commit comments