Commands This section contains the APIs related to script commands. Call function in a browsing context Java Ruby JavaScript Kotlin Selenium v4.15 try ( Script script = new Script ( id , driver )) { List < LocalValue > arguments = new ArrayList <> (); arguments . add ( PrimitiveProtocolValue . numberValue ( 22 )); Map < Object , LocalValue > value = new HashMap <> (); value . put ( “some_property” , LocalValue . numberValue ( 42 )); LocalValue thisParameter = LocalValue . objectValue ( value ); arguments . add ( thisParameter ); EvaluateResult result = script . callFunctionInBrowsingContext…