9得票3回答
使用selenium-java-4.0.0和chromedriver v85时,使用开发工具出现超时异常

我正在尝试使用selenium dev tools java API,但在调用多个API方法时出现了java.util.concurrent.TimeoutException异常。 例如,我正尝试使用Network.clearBrowserCache方法,根据chromedriver文档应该...

7得票2回答
无法找到 CDP 版本 109 的精确匹配,因此返回找到的最接近版本:使用 Selenium 4x ChromeDriver 109 的无操作实现。

我正在尝试执行一个基本的Selenium Java程序: public static void main(String[] args) { System.setProperty("webdriver.chrome.driver", "C:\\BrowserDrivers\\chrom...

14得票4回答
禁用Selenium Chrome Driver中的缓存

我正在使用 Selenium ChromeDriver 测量网页的性能。但是默认情况下,Chrome driver 启用了缓存。 选项 --disable-application-cache 现在已被弃用 https://code.google.com/p/chromium/issues/d...

8得票1回答
如何在使用Python的Selenium中利用Chrome DevTools协议捕获HTTP请求和响应?

我知道Fetch Domain是用于此目的的,但我不知道如何具体实现。在Selenium Python中,我使用以下代码启用了requestPaused事件的发布。 driver.execute_cdp_cmd("Fetch.enable",{}) driver.get('https://w...

19得票5回答
什么是Selenium和WebDriver?

什么是Selenium? 当您打开Selenium的官方页面时,“What is Selenium?”部分中的第一句话是“Selenium automates browser”。下面的“Which part of Selenium is appropriate for me?”部分提供了Se...

17得票8回答
WebDriverWait在Selenium 4中已被弃用。

我遇到一个警告: 警告:(143,13) 'WebDriverWait(org.openqa.selenium.WebDriver, long)'已被标记为过时 在Selenium 4.0.0-alpha-3中。 但是官方Selenium页面只列出了:WebDriverWait(...

15得票2回答
WebDriver异常:消息:服务geckodriver意外退出。状态代码为:64,使用Selenium Geckodriver Firefox在FreeBSD jail中出现错误。

针对一些测试,我已经创建了一个全新的TrueNAS 12.3 FreeBSD Jail并启动它,然后使用以下命令安装了python3, firefox, geckodriver和pip: pkg install python3 firefox geckodriver py38-pip pip...

10得票1回答
使用Selenium 4中的option.set_preference在Python中无法加载现有的Firefox配置文件

我有这段代码,可以工作并加载火狐浏览器的配置文件 from selenium import webdriver from selenium.webdriver.firefox.options import Options from selenium.webdriver.firefox.fir...