Rselenium– 如何禁用Firefoxconfiguration文件中的图像

Rselenium– 如何禁用Firefoxconfiguration文件中的图像,第1张

概述Rselenium – 如何禁用Firefoxconfiguration文件中的图像

在Rselenium中使用firefox时,如何禁用图像下载? 我想看看这样做是否会使拼写脚本更快。

我已经阅读了Reselnium包手册,包括关于getfirefoxProfile&makefirefoxProfile的章节。

我发现这个链接,显示如何处理Chromedriver 。

我可以禁用在windows 10中手动打开的firefox实例的图像,但Rselenium似乎不使用相同的configuration文件。

集成windows身份valIDation与IIS,firefox和sql Server

如何从awk,perl或sed中删除livehttpheaders输出的响应?

在ms-windows上用vim编辑时用firefox预览RestructuredText

Helvetica Neue字体问题在firefox

满足嵌套跨度。 谁有重点?

如何彻底删除firefox并重新安装在Fedora中

在linux上通过插件将Qt窗口embedded到firefox中

Python | 访问DLL使用ctypes

firefox的Macalignment问题

尝试使用Python中的Selenium启动一个网页

以前,您需要设置适当的首选项(在这种情况下是permissions.default.image ),但现在有一个与firefox重置此值的问题请参阅:

https://github.com/seleniumhq/selenium/issues/2171

解决方法是:

https://github.com/gempesaw/seleniumium-Remote-Driver/issues/248

在Rseleniumium实现:

library(Rseleniumium) fprof <- makefirefoxProfile(List(permissions.default.image = 2L,browser.migration.version = 9999L)) rD <- rsDriver(browser = "firefox",extraCapabilitIEs = fprof) remDr <- rD$clIEnt remDr$navigate("http://www.Google.com/ncr") remDr$screenshot(display = TRUE) # clean up rm(rD) gc()

总结

以上是内存溢出为你收集整理的Rselenium – 如何禁用Firefoxconfiguration文件中的图像全部内容,希望文章能够帮你解决Rselenium – 如何禁用Firefoxconfiguration文件中的图像所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/langs/1273142.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-08
下一篇 2022-06-08

发表评论

登录后才能评论

评论列表(0条)

保存