硒中的多个FireFox驱动程序(最佳方法) [英] Multiple FireFox drivers in selenium (best approach)

查看:78
本文介绍了硒中的多个FireFox驱动程序(最佳方法)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Selenium和FireFox驱动程序监控多个站点。我正在努力做到这一点,因为我需要同时查看很多网站。基本上我正在抓取页面并以这种方式执行它允许记录
页面中的更改以及一个函数调用以捕获更改以在数字超出范围时发出警报。 

Hi, I am trying to monitor multiple sites using Selenium with the FireFox driver. I am trying to do it efficiently because I need to look at a lot of sites at the same time. Basically I am scraping the pages and doing it this way allows for changes in the pages to be noted and a function called to catch the changes for raising alarms when the figure is out of range. 

但是,就像我说的那样,我需要这个效率很高,目前我正在启动每个目标URL作为异步执行此操作的单独任务。然而,有很快的限制,我正在耗尽CPU和内存,大约有11个站点被监控。 

However, like I say I need this to be efficient and at the moment I am launching each target url as a separate task in async to do this. However there are limitations very quickly and I'm running out of CPU and memory with about 11 sites being monitored. 

我想知道如果有人知道更有效的方法吗? 

I was wondering if anyone knows of a more efficient way of doing this? 

推荐答案

你好朋友,

此论坛适用于Visual Studio的单元测试。

This forum is for Unit testing of Visual Studio.

当您使用Selenium时,  支持selenium社区
可能是一个更好的地方,可以找到快速答案。

As you are using Selenium, the support community of selenium might be a better place where could find a quick answer.

感谢您的理解与合作。

Thanks for your understanding and cooperation.

 

祝你好运,

Fletcher


这篇关于硒中的多个FireFox驱动程序(最佳方法)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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