selenium-server-standalone
来源:互联网 发布:微信淘宝优惠券机器人 编辑:程序博客网 时间:2024/06/06 01:25
From: http://blog.csdn.net/hwm831002/article/details/8954163
Selenium Server是指使用jdk来运行这个selenium-server-standalone-2.22.0.jar这个jar文件(java -jar /selenium-server-standalone-2.22.0.jar)。它是一个http的服务,默认在端口号4444侦听。它从客户端接收到请求,来驱动浏览器,做打开网页、提交表单,各种页面验证等事情。
在一般情况下,java -jar selenium-server-standalone-.jar就够用了。但是有些选项,还是蛮有用的,可以关注一下。
-profilesLocation: (仅Firefox)指定Firefox的profile文件位置。什么?不晓得Firefox的profile是干啥用?简单的说,就是将你浏览网站的cookie、历史记录等记录到一个文件夹下面(点击这里查看详细)。 为什么需要这个呢?在默认情况下,Selenium Server会使用一个空的profile文件夹的,也就是它启动的Firefox是一个“干净 ”的浏览器。有时候,这并不是你所想要的,例如,在某些网站,做过的一些设置(如关掉页面上恼人的浮层),如果是“干净”的浏览器,那你的设置就没法生效 的。
-browserSessionReuse:可以节省tests运行时间的。在每个test运行的时候,不用重新再次启动Firefox,复用旧的Firefox。
-userExtensions :firefox的用户扩展。将一段js代码load到selenium里面去,非常有用。对于一些已经实现了使用JS来验证的工具,无缝的集成到 Selenium里面,这意味着原本单个页面的手工执行JS工具,可以通过Selenium自动化来执行这些工具。
更多的选项,可以来查看帮助:
- selenium-server-standalone
- selenium-server-standalone.jar无法启动
- 使用Selenium server standalone实现定时web自动化下载电影
- Selenium Grid 简易安装--(selenium-server-standalone-*.jar)
- Selenium Grid 简易安装--(selenium-server-standalone-*.jar)
- 部署eclipse+junit+selenium未添加selenium-server-standalone-2.46.0.jar抛异常
- 运行selenium-server-standalone.jar时,Firefox无法在***找到该文件
- 【问题】selenium-server-standalone和webdriver版本不对应的问题
- Jersey创建standalone server 一
- Jersey创建standalone server 二
- selenium-server
- Selenium::WebDriver::Error::WebDriverError:Unable to find standalone executable解决办法
- Apache server type standalone and inetd
- Selenium Server 2.0
- selenium client server mode
- Selenium server 启动失败
- [gsoap] SIGPIPE (Broken pipe) in client/standalone server
- check sharepoint server is standalone or farm mode
- Vim命令集
- 用户名不在sudoers文件中。此事将被报告。
- eclipse中启动tomcat后,访问tomcat主页,出现404错误原因
- iOS Xcode工程目录的 folder 和 group的区别(蓝色和黄色文件夹的区别)
- 百度收录的页面出现乱码的问题
- selenium-server-standalone
- 安装无法继续,因为一个必需文件已损坏或不可用,请从原始源光盘活下载位置重新运行安装程序
- 打电话时onClick事件
- Office2010密钥过期怎么办
- Java 多线程(六) synchronized关键字详解
- RN
- IOS中通知中心(NSNotificationCenter)的使用总结
- Hex和ASCII相互转换函数
- Android快速开发框架