Windows 7에서 python으로 Selenium webdriver와 함께 Chrome 브라우저를 열려고하지만 중단됩니다.셀레늄은 win7에서 python으로 크롬 브라우저를 열 수 없습니까?
`
from selenium import webdriver
from selenium.common.exceptions import NoSuchElementException
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.proxy import *
import time
from pprint import pprint
chromeOps = webdriver.ChromeOptions()
print "after chrome opts", chromeOps
print dir(chromeOps)
pprint(chromeOps)
chromeOps.binary_location = "C:\\Users\\cvoicu\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe"
print "after binary loc"
browser = webdriver.Chrome("C:\\Python27\\chromedriver.exe", chrome_options=chromeOps)
print "after browser", browser
print dir(browser)
browser.get("http://www.google.com")
`
당신이 날 도와 줘요 수 : 아래는 내가 사용하는 코드는? 고맙습니다!
거기에 디버그 코드가 있습니다. 그게 무슨 전화 야? 그리고 당신은 어떤 오류 출력을 받고 있습니까? –
오류가 없습니다. 행 아웃하기 전에 출력 마지막 줄이 2 개 있습니다. 바이너리 loc service url http : // localhost : 64960 –
가끔 끝에 도달하지만 브라우저가 열리지 않습니다. –