Console
To run javascript on the current page, you can use the following methods.
Accessing the object
| app = FastRPA()
web = app.browse('https:...')
type(web.console)
|
Outputfastrpa.core.console.Console
Reference
Evaluate a simple expression
| web.console.evaluate('2 + 2')
|
Run multi line scripts
| web.console.run([
'button = document.getElementById("myButton")',
'button.click()'
])
|
Run a javascript file
| web.console.run_script('/path/to/script.js')
|