2017 © Pedro Peláez
 

library browser

模拟浏览器

image

yanthink/browser

模拟浏览器

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

The README.md

模拟浏览器

安装

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

composer require yanthink/browser

2) 使用, (*2)

<?php

namespace App\Console\Commands;

use Illuminate\Console\Command;
use Yanthink\Browser\Browser;
use Yanthink\Browser\Simulation;

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

The Versions

10/07 2018

dev-master

9999999-dev

模拟浏览器

  Sources   Download

MIT

The Requires

 

by Avatar yanthink

laravel webdriver