Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

dougkusanagi

🏠
Working from home
View GitHub Profile
@dougkusanagi
dougkusanagi / selenium-php-webdriver-cheatsheet.md
Created Oct 22, 2021 — forked from aczietlow/selenium-php-webdriver-cheatsheet.md
Cheat sheet for using php webdriver (facebook/webdriver).
View selenium-php-webdriver-cheatsheet.md

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);
    
View menu-com-dropdown.html
<ul class="menu">
<li><a href="#">Home</a></li>
<li class="menu"><a href="#">Assuntos</a>
<ul class="sub-menu">
<li><a href="#">Livros</a></li>
<li><a href="#">Filmes</a></li>
</ul>
</li>
<li><a href="#">Sobre</a></li>
</ul>