$uri = "http://google.com"
add-type -path C:\test\selenium\net40\WebDriver.dll
$driver = New-Object OpenQA.Selenium.Chrome.ChromeDriver
$driver.url = $uri
$driver.FindElementByLinkText("Gaeilge").SendKeys([OpenQA.Selenium.Keys]::Control + [OpenQA.Selenium.Keys]::Enter)
Add-PSSnapin wasp
$window = Select-Window -ProcessName calc.exe | where title -eq "Calculator"
if ($window -ne $null)
{
$window.Activate()
$window.Restore()
Start-Sleep 1
Select-Control -Window $window.Handle -Recurse | where title -Match "text na knopke" | where class -Match "class knopki" | Send-Click -Button left
}