Phantomjs vs selenim [英] Phantomjs vs selenim

查看:135
本文介绍了Phantomjs vs selenim的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hey Guys,



目前我正在使用Selenium进行自动化和报废。一切正常,但有点慢和小问题。我的解决方案是使用C#开发的。



我打算使用PhantomJS作为备份,但不想将Selenium作为其中的一部分。



我的问题:



1.如何实施保持活动会话,因为我不想再次登录再次。它将登录一次,然后等待操作到来。



2.如何将动态任务(操作)传递给该会话。例如读取特定文本框的值,然后在几分钟后从表中读取值。



如果不使用selenium,可以使用幻像JS这样的事情。



谢谢



我的尝试:



我在网上搜索但没有找到与之相关的任何内容。使用selenium GhostDriver可以用来与PhantomJs进行通信,它将在单个会话中。我想在没有selenium的情况下构建相同的东西。

Hey Guys,

Currently I am using Selenium for automation and scrapping. Everything working fine but it's bit slow and minor issues. My solution developed using C#.

I am planning to use PhantomJS as a backup thing but don't want to use Selenium to as part of it.

My Questions:

1. How can I implement keep alive session because I don't want to login again and again. It will login once and then wait for operation to come.

2. How can I pass dynamic task (operation) to that session. for e.g. Read value for specific textbox and then after few minutes read value from table.

Is this sort of thing possible to do with phantom JS without using selenium.

Thanks

What I have tried:

I was searching on web but didn't find anything related to it. With selenium GhostDriver can use to communicate with PhantomJs and it will be in single session. I want to build same thing without selenium.

推荐答案

首先,要意识到你将尝试使用两个非常复杂的代码实体来实现某种形式的功能等价,Selenium和幻影。除非你是一个非常先进的网络堆栈开发人员,否则我建议你不要开始这条路。



其次,Phantom在这里有一个支持小组:[ ^ ]。 Selenium用户组:[ ^ ]。



我想您可能需要请求项目用户组的支持。
First, realize that you are going to try to achieve some form of functional equivalence using two very complex code entities, Selenium, and Phantom. Unless you are a very advanced web-stack developer, I suggest you not start down this road.

Second, Phantom has a support group here: [^]. Selenium user group: [^].

I think you will probably need to ask for support on the projects' user groups.


这篇关于Phantomjs vs selenim的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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