This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Param( | |
[string]$sauceUserName, | |
[string]$sauceAccessKey | |
) | |
Write-Host "sauce.userName that was passed in from Azure DevOps=>$sauceUserName" | |
Write-Host "sauce.accessKey that was passed in from Azure DevOps=>$sauceAccessKey" | |
[Environment]::SetEnvironmentVariable("SAUCE_USERNAME", "$sauceUserName", "User") | |
[Environment]::SetEnvironmentVariable("SAUCE_ACCESS_KEY", "$sauceAccessKey)", "User") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ChromeOptions options = new ChromeOptions(); | |
options.UseSpecCompliantProtocol = true; | |
options.BrowserVersion = "latest"; | |
options.PlatformName = "Windows 10"; | |
Driver = new RemoteWebDriver(new Uri("http://ondemand.saucelabs.com:80/wd/hub"), options.ToCapabilities(), | |
TimeSpan.FromSeconds(600)); |
OlderNewer