getinstance/fbwebdriverfacade
Composer 安装命令:
composer require getinstance/fbwebdriverfacade
包简介
A handy facade for common facebook php-webdriver operations
关键字:
README 文档
README
An internal tool we use to shortcut various php-webdriver operations - including workarounds for some operations that don't seem to work for us any longer.
Version 1.0.8
use getinstance\fbwebdriverfacade\SeleniumLib;
use Facebook\WebDriver\Remote\WebDriverCapabilityType;
use Facebook\WebDriver\Remote\RemoteWebDriver;
// you'll need the selenium server running
$host = "http://127.0.0.1:7772/wd/hub";
$coreurl = "http://www.google.com";
$capabilities = array(WebDriverCapabilityType::BROWSER_NAME => 'firefox');
$driver = RemoteWebDriver::create($host, $capabilities);
$tools = new SeleniumLib( $driver );
$driver->get($coreurl);
$tools->typeIn("q", "fbwebdriverfacade");
$tools->clickButton("Google Search");
$tools->waitForId("resultStats");
$tools->clickLink("Videos");
统计信息
- 总下载量: 597
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-11-28