파이썬에서 구글 크롬 콘솔에 작성하는 방법

코드 예제

0
0

파이썬에서 구글 크롬 콘솔에 작성하는 방법

# 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`)")

비슷한 페이지

예제가있는 유사한 페이지

다른 언어로

이 페이지는 다른 언어로되어 있습니다

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................