0

通过 chrome 运行脚本时出现错误,但相同的代码正在 Firefox 中运行 OM。

错误:D:\SeleniumPOC>python CC2.py [2564:4732:1028/082336:ERROR:gpu_info_collector_win.cc(102)] 无法检索有效的 WinSAT 评估。[2564:4732:1028/082344:ERROR:textfield.h(176)] 未实现

from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.common.exceptions import NoSuchElementException
import unittest, time, re

class CC2(unittest.TestCase):
    def setUp(self):
        self.driver = webdriver.Chrome()
        self.driver.implicitly_wait(30)
        self.base_url = "http://google.com"
        time.sleep(5)
        self.verificationErrors = []
        self.accept_next_alert = True

我已将我的 chrome 驱动程序 exe 放在 c/python27/Scripts 文件夹中

4

0 回答 0