Selenium 缺失或无效的“entry.level"错误 [英] Selenium missing or invalid 'entry.level' Error

查看:30
本文介绍了Selenium 缺失或无效的“entry.level"错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试运行 selenium 测试,它应该可以正常工作(没有改变并且过去可以工作),但我遇到了这个奇怪的错误.

I'm trying to run a selenium test which should work just fine (hasn't changed and used to work) but I'm getting this strange error.

System.InvalidOperationException : unknown error: cannot determine loading status
from unknown error: missing or invalid 'entry.level'
  (Session info: chrome=63.0.3239.84)
  (Driver info: chromedriver=2.25.426923 (0390b88869384d6eb0d5d09729679f934aab9eed),platform=Windows NT 10.0.15063 x86_64)
   at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse) in c:ProjectsWebDriver	runkdotnetsrcWebDriverRemoteRemoteWebDriver.cs:line 1015
   at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters) in c:ProjectsWebDriver	runkdotnetsrcWebDriverRemoteRemoteWebDriver.cs:line 849
   at OpenQA.Selenium.Remote.RemoteWebElement.Click() in c:ProjectsWebDriver	runkdotnetsrcWebDriverRemoteRemoteWebElement.cs:line 337
...

什么是缺少或无效的 'entry.level'"错误,我该如何解决?

What is this "missing or invalid 'entry.level'" error and how do I fix it?

推荐答案

我通过将我的 chrome 驱动程序更新到最新版本(在撰写本文时为 v2.34)解决了这个问题.

I resolved this by updating my chrome driver to the latest version (v2.34 at the time of writing).

您可以在此处获取 chromedriver:https://sites.google.com/a/chromium.org/chromedriver/downloads

You can get the chromedriver here: https://sites.google.com/a/chromium.org/chromedriver/downloads

只需下载 .exe 文件,然后替换项目 selenium/bin 文件夹中的 chromedriver 文件.

just download the .exe file then replace the chromedriver file in your project's selenium/bin folder.

这篇关于Selenium 缺失或无效的“entry.level"错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆