File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 4040
4141def multiply_numbers (x : float , y : float ) -> dict :
4242 """Multiplies two numbers."""
43- return {"result" : x + y }
43+ return {"result" : x * y }
4444
4545
4646class BrowserAgent :
Original file line number Diff line number Diff line change 1313# limitations under the License.
1414import termcolor
1515import time
16+ import sys
1617from ..computer import (
1718 Computer ,
1819 EnvState ,
@@ -152,7 +153,10 @@ def type_text_at(
152153 self ._page .wait_for_load_state ()
153154
154155 if clear_before_typing :
155- self .key_combination (["Control" , "A" ])
156+ if sys .platform == "darwin" :
157+ self .key_combination (["Command" , "A" ])
158+ else :
159+ self .key_combination (["Control" , "A" ])
156160 self .key_combination (["Delete" ])
157161
158162 self ._page .keyboard .type (text )
You can’t perform that action at this time.
0 commit comments