- Wraps the C# WebDriver for Selenium
- Easily execute web-based tests
- Works well with Pester
Install-Module Selenium
OR
Import-Module "{FullPath}\selenium-powershell\Selenium.psm1"
$Driver = Start-SeFirefox
Enter-SeUrl https://www.poshud.com -Driver $Driver
$Driver = Start-SeFirefox
Enter-SeUrl https://www.poshud.com -Driver $Driver
$Element = Find-SeElement -Driver $Driver -Id "myControl"
$Driver = Start-SeFirefox
Enter-SeUrl https://www.poshud.com -Driver $Driver
$Element = Find-SeElement -Driver $Driver -Id "btnSend"
Invoke-SeClick -Element $Element
$Driver = Start-SeFirefox
Enter-SeUrl https://www.poshud.com -Driver $Driver
$Element = Find-SeElement -Driver $Driver -Id "txtEmail"
Send-SeKeys -Element $Element -Keys "adam@poshtools.com"
$Driver = Start-SeChrome -Arguments "headless","incognito"
$Driver = Start-SeChrome
Enter-SeUrl https://www.google.com -Driver $Driver
Wait-SeElementExists -Driver $Driver -Timeout 3 -Id "q"
Wait-SeElementExists -Driver $Driver -Timeout 3 -Name "q"