So schreiben Sie in Google Chrome Console in Python
# example.py
from selenium import webdriver
# Start Chrome Driver
chromedriver = 'Users/me/Documents/MyPrograme/chromedriver'
driver = webdriver.Chrome(chromedriver)
# Open the URL you want to execute JS
URL = 'https://www.example.com'
driver.get(URL)
# Execute JS
driver.execute_script("console.log(`Hello from Python`)")
Uninterested Unicorn