英文:
Managing different versions of Browser (Chrome for example) while using Selenium 4.9.1 in C#
问题
我们正在使用Selenium与**C#**进行GUI测试。目前,我们正在使用WebdriverManager来自动处理不同版本的Chrome。到目前为止,它运行得很好!
我最近尝试将Selenium WebDriver版本更新到最新版(4.9.1)。我知道,在Java中,当一个人使用Selenium WebDriver版本4.0.0及更高版本时,就不再需要WebdriverManager了。Selenium WebDriver会自动处理它。但在C#中似乎不是这样。当我删除WebdriverManager时,我无法运行测试(错误-无法创建会话)。所以我的问题如下:
-
在使用C#的Selenium WebDriver时,应该使用什么来处理不同版本的浏览器?WebdriverManager还是Selenium Manager?
-
一个是否比另一个有优势?
英文:
We are using Selenium with C# for our GUI Tests. Currently we are using WebdriverManager to handle diffrerent versions of Chrome auotmatically. It works fine so far !
I recently tried to update Selenium Webdriver version to latest (4.9.1). I am aware that in Java when one has Selenium Webdriver version 4.0.0 onards, one does not need WebdriverManager anymore. It will be taken care by Selenium Webdriver. But in C# it does not seem so. I could not run tests wehn I removed WebdriverManager (Error - Session can not be cretaed). So my questions below :-
-
While using Selenium Webdriver with C#, what should one use for handling different versions of the Browser ? WebdriverManager or Selenium Manager ?
-
Is there any advantage of one over the other ?
答案1
得分: 0
我会直接使用Selenium Manager,因为它是Selenium WebDriver的官方驱动程序管理器。
注意:我是WebDriverManager(用于Java)的维护者。同时,我也在开发Selenium Manager。我不了解WebDriverManager.Net的详细情况,这是你正在使用的版本。
英文:
I would use Selenium Manager directly since it is the official driver manager for Selenium WebDriver.
Note: I am the maintainer of WebDriverManager (for Java). But also, I am developing Selenium Manager. I don't know the details of WebDriverManager.Net, which is the one you are using.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论