how to write in google chrome console in python

Solutions on MaxInterview for how to write in google chrome console in python by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "how to write in google chrome console in python"
Salomé
05 Nov 2017
1# example.py
2
3from selenium import webdriver
4
5# Start Chrome Driver
6chromedriver = 'Users/me/Documents/MyPrograme/chromedriver'
7
8driver = webdriver.Chrome(chromedriver)
9
10# Open the URL you want to execute JS
11URL = 'https://www.example.com'
12driver.get(URL)
13
14# Execute JS
15
16driver.execute_script("console.log(`Hello from Python`)")
17