jumper423/yii2-php-webdriver
Composer 安装命令:
composer require jumper423/yii2-php-webdriver
包简介
A PHP client for WebDriver
关键字:
README 文档
README
DESCRIPTION
This WebDriver client aims to be as close as possible to bindings in other languages. The concepts are very similar to the Java, .NET, Python and Ruby bindings for WebDriver.
Looking for documentation about php-webdriver? See http://facebook.github.io/php-webdriver/
The PHP client was rewritten from scratch. Using the old version? Check out Adam Goucher's fork of it at https://github.com/Element-34/php-webdriver
Any complaint, question, idea? You can post it on the user group https://www.facebook.com/groups/phpwebdriver/.
GETTING THE CODE
There are two ways of getting the code:
Via Github
git clone git@github.com:facebook/php-webdriver.git
Via Packagist
Add the dependency to composer.json (see https://packagist.org/packages/facebook/webdriver)
{
"require": {
"facebook/webdriver": "~1.0"
}
}
INSTALLATION
Download the composer.phar
curl -sS https://getcomposer.org/installer | php
Install the library.
php composer.phar install
GETTING STARTED
-
All you need as the server for this client is the selenium-server-standalone-#.jar file provided here: http://selenium-release.storage.googleapis.com/index.html
-
Download and run that file, replacing # with the current server version.
java -jar selenium-server-standalone-#.jar java -jar selenium-server-standalone-2.48.2.jar -
Then when you create a session, be sure to pass the url to where your server is running.
// This would be the url of the host running the server-standalone.jar $host = 'http://localhost:4444/wd/hub'; // this is the default
-
Launch Firefox
$driver = RemoteWebDriver::create($host, DesiredCapabilities::firefox());
-
Launch Chrome
$driver = RemoteWebDriver::create($host, DesiredCapabilities::chrome());
-
You can also customize the desired capabilities.
$desired_capabilities = DesiredCapabilities::firefox(); $desired_capabilities->setJavascriptEnabled(false); RemoteWebDriver::create($host, $desired_capabilities);
-
See https://code.google.com/p/selenium/wiki/DesiredCapabilities for more details.
RUN UNIT TESTS
To run unit tests simply run:
./vendor/bin/phpunit -c ./tests
Note: For the functional test suite, a running selenium server is required.
MORE INFORMATION
Check out the Selenium docs and wiki at http://docs.seleniumhq.org/docs/ and https://code.google.com/p/selenium/wiki
Learn how to integrate it with PHPUnit Blogpost | Demo Project
SUPPORT
We have a great community willing to try and help you!
Currently we offer support in two manners:
Via our Facebook Group
If you have questions or are an active contributor consider joining our facebook group and contributing to the communal discussion and support
https://www.facebook.com/groups/phpwebdriver/
Via Github
If you're reading this you've already found our Github repository. If you have a question, feel free to submit it as an issue and our staff will do their best to help you as soon as possible.
CONTRIBUTING
We love to have your help to make php-webdriver better. Feel free to
- open an issue if you run into any problem.
- fork the project and submit pull request. Before the pull requests can be accepted, a Contributors Licensing Agreement must be signed.
When you are going to contribute, please keep in mind that this webdriver client aims to be as close as possible to other languages Java/Ruby/Python/C#. FYI, here is the overview of the official Java API
jumper423/yii2-php-webdriver 适用场景与选型建议
jumper423/yii2-php-webdriver 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 73 次下载、GitHub Stars 达 1, 最近一次更新时间为 2015 年 12 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「facebook」 「selenium」 「webdriver」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 jumper423/yii2-php-webdriver 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 jumper423/yii2-php-webdriver 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 jumper423/yii2-php-webdriver 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Simple Sharing generates social media share links within CP entry pages, allowing you to quickly & easily share entries.
Selenium4 (WebDriver) driver for Mink framework
PHP Library for Selenium
Selenium driver for Mink framework
Magento 2 Social Login extension is designed for quick login to your Magento 2 store without procesing complex register steps
Contao 4 bundle for a Facebook login.
统计信息
- 总下载量: 73
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2015-12-21