Skip to content

Instantly share code, notes, and snippets.

View woutersamaey's full-sized avatar

Wouter Samaey woutersamaey

View GitHub Profile
@aczietlow
aczietlow / selenium-php-webdriver-cheatsheet.md
Last active March 6, 2024 22:48 — forked from huangzhichong/selenium-webdriver-cheatsheet.md
Cheat sheet for using php webdriver (facebook/webdriver).

Webdriver PHP API workthough

  • Open a browser

    # start an instance of firefox with selenium-webdriver
    
    $browser_type = 'firefox'
    $host = 'http://localhost:4444/wd/hub'
    

$capabilities = array(\WebDriverCapabilityType::BROWSER_NAME => $browser_type);

@kimtrien
kimtrien / webhook.php
Created February 24, 2020 14:52
Satis webhook
<?php
// Initiate Symfony
require_once __DIR__ . '/vendor/autoload.php';
use Symfony\Component\Process\Process;
// Basic-Configuration
$config = [
'bin' => 'bin/satis',
'json' => 'satis.json',