D
D
dmasloff2021-06-21 12:32:01
Python
dmasloff, 2021-06-21 12:32:01

Why is the page not opening in the combination of Selenium and Python?

Good afternoon, I just started trying to write something in python in conjunction with selenium, when I run this code, the Chrome home page starts up, but the site itself does not, does anyone know what this could be connected with and how to fix it?

from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import requests
import time, urllib.request

PATH=r"C:\Program Files\Google\Chrome\Application\chrome.exe"
driver=webdriver.Chrome(PATH)

driver.get("https://www.instagram.com/")

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2021-06-21
@dmasloff

webdriver.Chrome()takes the path to the webdriver , you specify the usual chrome

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question