在不使用任何浏览器的情况下使用Selenium [英] Using Selenium without using any browser

查看:76
本文介绍了在不使用任何浏览器的情况下使用Selenium的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试使用Selenium进行Web自动化,有没有办法在没有实际安装的情况下使用chrome,firefox等浏览器,例如使用一些替代选项,或者使用它们的便携式版本.如果我可以使用便携式版本,我要告诉硒使用吗?

I have been trying to do web automation using selenium,Is there any way to use browser like chrome,firefox without actually installing then, like using some alternate options, or having portable versions of them.If I can use portable versions how do i tell selenium to use it?

推荐答案

要使用,您必须安装功能完善的浏览器.

To use the browsers like google-chrome and firefox you have to install the full-blown browser.

您可以在


作为替代方案,您可以使用 headless ( headless )

PhantomJS无法正确加载中找到详细的讨论网页


参考文献

一些相关的讨论:


References

A couple of relevent discussions:

这篇关于在不使用任何浏览器的情况下使用Selenium的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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