- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我在 Windows 上使用 python 3,使用 Selenium 包使用 Chrome 进行网络爬行。我在一台新计算机上运行,执行所有相同的操作,但在第一次运行时立即出现以下错误。我从来没有见过这个异常。任何人都熟悉它并且可以透露一些信息吗?谢谢。
WebDriverException: session not created exception
from unknown error: Runtime.executionContextCreated has invalid 'context': {"auxData":{"frameId":"9668.1","isDefault":true},"id":1,"name":"","origin":"://"}
(Session info: chrome=54.0.2840.71)
(Driver info: chromedriver=2.22.397933 (1cab651507b88dec79b2b2a22d1943c01833cc1b),platform=Windows NT 6.3.9600 x86_64)
异常在驱动程序调用开始时立即发生:
driver = webdriver.Chrome()
更新:升级到 chromeDriver2.4 后,出现了一个我以前从未见过的不同错误:
WebDriverException:未知错误:无法发现打开的页面 (驱动程序信息:chromedriver=2.4.226107,platform=Windows NT 6.1 SP1 x86_64)
有什么想法吗?谢谢...
最佳答案
确保更新到最新的驱动程序。我遇到了同样的问题——正在使用 2.22 并更新到 2.24。解决了问题。
最新驱动程序请参见此处:(点击最新发布) http://chromedriver.storage.googleapis.com/index.html
关于python - 使用 python 3 的 Selenium 中的 WebDriverException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40205687/
我是自动化测试的新手,虽然我的 Selenium 测试在 Chrome 和 Firefox 上运行,但它们不在 IE11 上运行。我做了下面详述的所有检查,但我一直遇到这个错误: org.openqa
我正在尝试将 PhantomJSDriver 与 Selenium 一起使用。 这是我的测试代码: public static void main(String[] args) { /
所以我试图从 Firefox 浏览器中截取屏幕截图,但出现以下异常: org.openqa.selenium.WebDriverException: [Exception... "Data conve
我正在尝试使用 Selenium/BeautifulSoup 对网页进行单元测试。尽管我无法使用 Google,但我收到了一个错误。 selenium.common.exceptions.WebDri
当调用鼠标悬停关键字时,出现以下错误: WebDriverException: Message :POST /session/bcb99bc5-1b47-4438-b1b7-471785ea34c8/
当我调用 chromedriver 时,捕获了 WebDriverException: Exception in thread "main" org.openqa.selenium.WebDriver
我在 linux 服务器上有一个 chrome selenium 驱动程序,它由 cron 每小时执行一次。我遇到的错误只发生在后续运行中,也就是说,在第一次运行期间它工作正常,但在第二次或任何其他后
我正在使用 webdriver 单击 iframe 中表单上的提交按钮。基本上: self.driver.find_element_by_css_selector("[name~='field_1']
我有一个输入元素,单击它会打开一个新的弹出窗口(用户可以在其中为该字段选择一个值)。 标记: c#: var driver = new PhantomJSDriver(@"C:\Phan
我的一组测试似乎只有在远程运行时和尝试与特定元素交互时才会出现问题。我正在通过 VSTS 构建和运行它。 错误: OpenQA.Selenium.WebDriverException: A excep
我正在关注 Django TDD 教程: http://www.marinamele.com/taskbuster-django-tutorial/taskbuster-working-environ
我在 UI 测试期间遇到以下错误。 org.openqa.selenium.WebDriverException: Element not found or not visible for xpath
我正在编写一个自动化测试,如果出现错误,我想直接在 GitHub 的存储库中报告。在我的程序中失败的步骤是来自 GitHub Issue Tracker 的 Submit new issue 按钮。
我正在尝试将网络抓取工具合并到我当前的工作流程中。我对 Python 和网络抓取非常陌生,在开发当前的解决方案之前,我正在解决一个示例问题。 这就是我认为下面的代码的含义。 我们正在定义一个从当前页面
多年来我一直在使用 webdriver.Firefox(),今天我开始了另一个项目并且 browser = webdriver.Firefox() 正在返回 WebDriverException: M
尝试通过 selenium 上传文件时出现以下错误。 org.openqa.selenium.WebDriverException: File not found: D:\Projekte\Ticke
我正面临 python selenium 的问题我在下面输入了代码,几分钟前它运行良好,但现在它不起作用说 chrome not reachable请帮忙! from selenium import
我的 Selenium 网格显示错误: org.openqa.selenium.WebDriverException:驱动程序可执行文件的路径必须由 webdriver.chrome.driver 系
我正在使用非常复杂的设置来测试各种非公开网页。我使用 jenkins 在 docker 图像中运行 python-selenium 测试。这样,我就完全独立于 jenkins 环境,可以创建自己的环境
我正在使用 selenium 和 pytest 设置 python 自动化测试,我的目标是在 Circleci 2.0 上运行它。 本地测试正常运行,但是CircleCi服务器出现这个错误,不知道为什
我是一名优秀的程序员,十分优秀!