2017 © Pedro Peláez
 

library selenium

selenium

image

yanthink/selenium

selenium

  • Wednesday, July 11, 2018
  • by yanthink
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

模拟浏览器

安装

1) 打开终端执行下面命令:, (*1)

composer require yanthink/selenium="@dev"

2) 使用, (*2)

<?php

namespace App\Console\Commands;

use Illuminate\Console\Command;
use Yanthink\selenium\Browser;
use Yanthink\selenium\Selenium;

Selenium::useChromeDriver();
Selenium::enableAutoStartChromeDriver();

class Test extends Command
{
    public function handle(Selenium $selenium)
    {
        $selenium->browse(function (Browser $browser) {
            $browser->visit('http://localhost/foo')
                ->waitFor('#pass')
                ->type('pass', 'password')
                ->click('#sub')
                ->dump();
        });
    }
}

The Versions

11/07 2018

dev-master

9999999-dev

selenium

  Sources   Download

MIT

The Requires

 

by Avatar yanthink

laravel selenium webdriver