run javascript from the selenium script in Python code example Example: python selenium run javascript driver.execute_script('window.alert("worked!")')