Skip to content

Instantly share code, notes, and snippets.

View dougkusanagi's full-sized avatar
🏠
Working from home

Douglas Lopes dougkusanagi

🏠
Working from home
View GitHub Profile
@dougkusanagi
dougkusanagi / graphql-client-guzzle.php
Last active October 18, 2023 22:12 — forked from mohamedhafezqo/example.php
GraphQL Client For PHP Using Guzzle
<?php
$endPoint = 'https://api.github.com/graphql';
$query = <<<'GRAPHQL'
query getUsers {
user {
id
name
}
@dougkusanagi
dougkusanagi / selenium-php-webdriver-cheatsheet.md
Created October 22, 2021 19:03 — forked from aczietlow/selenium-php-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);