tagui.part4
所属分类:PHP编程
开发工具:PHP
文件大小:9749KB
下载次数:5
上传日期:2020-07-17 16:08:02
上 传 者:
leeslove
说明: php 对谷歌浏览器的自动化测试及功能封装 4
(Automatic testing of Google browser with PHP)
文件列表:
tagui\src\sikulix\sikulix.jar (93548193, 2019-04-07)
tagui\src\slimerjs\application.ini (224, 2019-04-08)
tagui\src\slimerjs\LICENSE (4185, 2019-04-08)
tagui\src\slimerjs\omni.ja (461456, 2019-04-08)
tagui\src\slimerjs\phantom-protocol.js (176, 2019-04-08)
tagui\src\slimerjs\slimerjs (7782, 2019-04-08)
tagui\src\slimerjs\slimerjs-node (912, 2019-04-08)
tagui\src\slimerjs\slimerjs.bat (8108, 2019-04-08)
tagui\src\slimerjs\slimerjs.py (8359, 2019-04-08)
tagui\src\slimerjs\chrome\icons\default\default32.png (2078, 2019-04-08)
tagui\src\slimerjs\chrome\icons\default\default48.png (1586, 2019-04-08)
tagui\src\slimerjs\chrome\icons\default\slimerjswin.ico (1150, 2019-04-08)
tagui\src\slimerjs\vendors\ghostdriver\config.js (3582, 2019-04-08)
tagui\src\slimerjs\vendors\ghostdriver\errors.js (10014, 2019-04-08)
tagui\src\slimerjs\vendors\ghostdriver\ghostdriver.qrc (4165, 2019-04-08)
tagui\src\slimerjs\vendors\ghostdriver\hub_register.js (3862, 2019-04-08)
tagui\src\slimerjs\vendors\ghostdriver\inputs.js (11450, 2019-04-08)
tagui\src\slimerjs\vendors\ghostdriver\lastupdate (293, 2019-04-08)
tagui\src\slimerjs\vendors\ghostdriver\logger.js (3401, 2019-04-08)
tagui\src\slimerjs\vendors\ghostdriver\main.js (4057, 2019-04-08)
tagui\src\slimerjs\vendors\ghostdriver\session.js (25877, 2019-04-08)
tagui\src\slimerjs\vendors\ghostdriver\webdriver_atoms.js (1954, 2019-04-08)
tagui\src\slimerjs\vendors\ghostdriver\webelementlocator.js (11275, 2019-04-08)
tagui\src\slimerjs\vendors\ghostdriver\request_handlers\request_handler.js (8032, 2019-04-08)
tagui\src\slimerjs\vendors\ghostdriver\request_handlers\router_request_handler.js (4654, 2019-04-08)
tagui\src\slimerjs\vendors\ghostdriver\request_handlers\session_manager_request_handler.js (6887, 2019-04-08)
tagui\src\slimerjs\vendors\ghostdriver\request_handlers\session_request_handler.js (38299, 2019-04-08)
tagui\src\slimerjs\vendors\ghostdriver\request_handlers\shutdown_request_handler.js (2544, 2019-04-08)
tagui\src\slimerjs\vendors\ghostdriver\request_handlers\status_request_handler.js (2382, 2019-04-08)
tagui\src\slimerjs\vendors\ghostdriver\request_handlers\webelement_request_handler.js (21087, 2019-04-08)
tagui\src\slimerjs\vendors\ghostdriver\third_party\console++.js (9246, 2019-04-08)
tagui\src\slimerjs\vendors\ghostdriver\third_party\har.js (5782, 2019-04-08)
tagui\src\slimerjs\vendors\ghostdriver\third_party\parseuri.js (2915, 2019-04-08)
tagui\src\slimerjs\vendors\ghostdriver\third_party\uuid.js (7360, 2019-04-08)
tagui\src\slimerjs\vendors\ghostdriver\third_party\webdriver-atoms\active_element.js (19747, 2019-04-08)
tagui\src\slimerjs\vendors\ghostdriver\third_party\webdriver-atoms\clear.js (71029, 2019-04-08)
tagui\src\slimerjs\vendors\ghostdriver\third_party\webdriver-atoms\clear_local_storage.js (8923, 2019-04-08)
tagui\src\slimerjs\vendors\ghostdriver\third_party\webdriver-atoms\clear_session_storage.js (8941, 2019-04-08)
... ...
# SlimerJS
SlimerJS is a scriptable browser. It allows you to manipulate a web page
with a Javascript script: opening a webpage, clicking on links, modifying the content...
It is useful to do functional tests, page automaton, network monitoring, screen
capture etc.
It is a clone of [PhantomJS](http://phantomjs.org) but it runs on top of
Gecko, the rendering engine of Firefox, instead of on top of webkit.
Go to [http://slimerjs.org] to know more. The documentation can be found
on [http://docs.slimerjs.org].
# Install
- Install [Firefox](http://getfirefox.com) (version 38 or more)
- [Download the latest package](https://download.slimerjs.org/releases/0.10.0/slimerjs-0.10.0.zip) or
[the source code of SlimerJS](https://github.com/laurentj/slimerjs/archive/master.zip) if you haven't already.
- On windows, a .bat is provided, but you can also launch slimer from a "true" console. In this case, you should install
[Cygwin](http://www.cygwin.com/) or any other unix environment to launch slimerjs.
- SlimerJS needs to know where Firefox is stored. It tries to discover
the path by itself but it can fail. You must then set the environment variable
SLIMERJSLAUNCHER, which should contain the full path to the firefox binary:
- On linux: ```export SLIMERJSLAUNCHER=/usr/bin/firefox```
- on Windows: ```SET SLIMERJSLAUNCHER="c:\Program Files\Mozilla Firefox\firefox.exe```
- On windows with cygwin : ```export SLIMERJSLAUNCHER="/cygdrive/c/program files/mozilla firefox/firefox.exe"```
- On MacOS: ```export SLIMERJSLAUNCHER=/Applications/Firefox.app/Contents/MacOS/firefox```
- You can of course set this variable in your .bashrc, .profile or in the computer
properties on Windows.
# Launching SlimerJS
Open a terminal and go to the directory of SlimerJS (src/ if you downloaded the
source code). Then launch:
```
./slimerjs myscript.js
```
In the Windows commands console:
```
slimerjs.bat myscript.js
```
The given script myscripts.js is then executed in a window. If your script is
short, you probably won't see this window.
You can for example launch some tests if you execute SlimerJS from the source code:
```
./slimerjs ../test/launch-initial-tests.js
```
# Launching a headless SlimerJS
Unlike PhantomJS, SlimerJS is not "headless" (you see all windows it opens)
because of some limitations of Gecko.
But there is a tool called xvfb, available on Linux and MacOS. It allows to launch
any "graphical" programs without the need of X-Windows environment. Windows of
the application won't be shown and will be drawn only in memory.
Install it from your prefered repository (```sudo apt-get install xvfb```
with debian/ubuntu).
Then launch SlimerJS like this:
```
xvfb-run ./slimerjs myscript.js
```
You won't see any windows. If you have any problems with xvfb, see its
documentation.
# Getting help
- Ask your questions on the dedicated [mailing list](https://groups.google.com/forum/#!forum/slimerjs).
- Discuss with us on IRC: channel #slimerjs on irc.mozilla.org.
- Read the faq [on the website](http://slimerjs.org/faq.html).
- Read [the documentation](http://docs.slimerjs.org/current/)
近期下载者:
相关文件:
收藏者: