Answers for "how to write in google chrome console in python"

0

how to write 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`)")
Posted by: Guest on April-05-2021

Code answers related to "how to write in google chrome console in python"

Python Answers by Framework

Browse Popular Code Answers by Language