(script, ...var_args)
| 190 | * A new JavaScript-based locator function. |
| 191 | */ |
| 192 | static js(script, ...var_args) { |
| 193 | return function (driver) { |
| 194 | return driver.executeScript.call(driver, script, ...var_args) |
| 195 | } |
| 196 | } |
| 197 | |
| 198 | /** |
| 199 | * Locates elements whose `name` attribute has the given value. |