【发布时间】:2017-09-30 20:55:26
【问题描述】:
是否可以检测由 Selenium 和 geckodriver 控制的 firefox 浏览器实例?
请注意有一个corresponding answer for chromedriver,但我想知道这对于 firefox/geckodriver 是否可行。
【问题讨论】:
-
链接问题的答案是肯定的,它只提供 Chromedriver 的解决方法细节。
-
答案是特定于 Chromedriver 的。它讨论的
$cdc_和$wdc_方法是chromedriver 的工件,一般不是Selenium 的工件,不适用于geckodriver。 -
不,不是。详细信息特定于 Chromedriver,但答案从一般性开始并回答您的问题,这也是一般性的。您的问题是,“网站可以检测到您何时将 selenium 与 geckodriver 一起使用?”答案是肯定的,
Basically the way the selenium detection works, is that they test for pre-defined javascript variables which appear when running with selenium.和Of course, all of this depends on which browser you are on. All the different browsers expose different things. -
它正在回答一个不同的问题,但该问题的答案表明所有浏览器的答案都是肯定的,并继续详细说明这可能如何适用于 Chrome。你没看到吗?我引用了上面的相关部分。
-
嗨,杰夫,我理解你,但你是不必要的迂腐和无益的。下面的实际答案很有帮助。
标签: selenium firefox selenium-firefoxdriver geckodriver