Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 583 Bytes

javascript.rst

File metadata and controls

29 lines (17 loc) · 583 Bytes

Executing javascript

You can easily execute JavaScript, in drivers which support it:

python

browser.execute_script("$('body').empty()")

You can return the result of the script:

python

browser.evaluate_script("4+4") == 8