This is documentation for the next version of K6. For the latest stable release, go to the latest version.
focus(selector[, options])
Warning
Use locator-based
locator.focus([options])
instead.
This method fetches an element with selector
and focuses it.