bhittani/web-driver 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bhittani/web-driver

Composer 安装命令:

composer require --dev bhittani/web-driver

包简介

A convenience wrapper around facebook's php-webdriver

README 文档

README

Run and/or control a web driver programmatically.

Requirements

  • PHP >= 5.6.4

Install

You may install this package using composer.

$ composer require bhittani/web-driver --prefer-dist

Install chrome driver

$ vendor/bin/install-chrome-driver

Install phantomjs driver

$ vendor/bin/install-phantomjs-driver

Usage

This package conveniently wraps the Facebook's PHP Web Driver and by default offers drivers for chrome and phantomjs.

Chrome Web Driver

First ensure you have installed the chrome driver.

<?php

use Bhittani\WebDriver\Chrome;

$driver = Chrome::make();

Phantomjs Web Driver

First ensure you have installed the phantomjs driver.

<?php

use Bhittani\WebDriver\Phantomjs;

$driver = Phantomjs::make();

API

All driver instances extend Facebook\WebDriver\Remote\RemoteWebDriver, hence, the same API applies.

Example

<?php

$googleDotCom = $driver->get('https://google.com');

$googleDotCom->getTitle(); // 'Google'

Advanced

TODO

  • Document the usage of process.
  • Document the usage of custom ports.
  • Document the usage of payload (chrome)

Changelog

Please see CHANGELOG for more information on what has changed.

Testing

$ git clone https://github.com/kamalkhan/web-driver

$ cd web-driver

$ composer install

$ composer install-drivers

$ composer test

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

If you discover any security related issues, please email shout@bhittani.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see the License File for more information.

统计信息

  • 总下载量: 97
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-05-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固