ying driver.</p>
<h3>Synchronous code</h3>
<pre><code class="lang-kotlin">Browser.drive(driverFactory = driverFactory) {
    // When I navigate to the Kotlin's page URL
    to("https://kotlinlang.org/")

    // And I execute JavaScript code with arguments via `invoke`
    val arguments = js(1.5, 2.3) {
        "return 'Arguments: ' + arguments[0] + ', ' + arguments[1];"
    }

    // Then I should get the arguments as is
    assertEquals(arguments, "Arguments: 1.5, 2.3")
}</code></pre><pre><code class="lang