简体   繁体   English

Python - 使用 Chrome 以外的浏览器和 webbot 包

[英]Python - Using a browser other than Chrome with webbot package

I am new to programming and my first task, which should be really simple, is to automate a proccess, where I log in in a website with my credentials, I click on some buttons and that is it.我是编程新手,我的第一个任务应该很简单,就是自动化一个过程,在那里我用我的凭据登录一个网站,我点击一些按钮,就是这样。 I am using Python 3.6 on windows 10.我在 Windows 10 上使用 Python 3.6。

I am trying to do it using the webbot module, which so far has come really handy but I have one big problem.我正在尝试使用 webbot 模块来做到这一点,到目前为止它已经非常方便,但我遇到了一个大问题。

The standard browser for webbot is Google Chrome and thus the site always opens with Chrome. webbot 的标准浏览器是 Google Chrome,因此该站点始终使用 Chrome 打开。 I need to open the site with Internet Explorer.我需要使用 Internet Explorer 打开该站点。

I have set IE as default browser, but nothing changed, Chrome would still open.我已将 IE 设置为默认浏览器,但没有任何改变,Chrome 仍会打开。

I deleted Chrome, but then when I would run the programm nothing would happen.我删除了 Chrome,但是当我运行程序时什么也不会发生。

I checked the init.py file and the drivers folder of the module and I think that this module can only work with chrome.我检查了 init.py 文件和模块的驱动程序文件夹,我认为这个模块只能与 chrome 一起使用。

Is it possible to use IE or does this mean that this package does not support this browser at all?是否可以使用 IE 或这是否意味着该软件包根本不支持该浏览器? Which alternatives would you suggest?您会建议哪些替代方案? Edit: If I am not mistaken Selenium does not support IE11 on windows 10, so that is not an option, unless I am mistaken.编辑:如果我没记错的话,Selenium 在 Windows 10 上不支持 IE11,所以这不是一个选项,除非我记错了。

Thanks in advance提前致谢

不支持除 Chrome 之外的其他浏览器(就 webbot 模块而言)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM