Nutstone.Selenium.Powershell
1.0.10
See the version list below for details.
dotnet add package Nutstone.Selenium.Powershell --version 1.0.10
NuGet\Install-Package Nutstone.Selenium.Powershell -Version 1.0.10
<PackageReference Include="Nutstone.Selenium.Powershell" Version="1.0.10" />
paket add Nutstone.Selenium.Powershell --version 1.0.10
#r "nuget: Nutstone.Selenium.Powershell, 1.0.10"
// Install Nutstone.Selenium.Powershell as a Cake Addin #addin nuget:?package=Nutstone.Selenium.Powershell&version=1.0.10 // Install Nutstone.Selenium.Powershell as a Cake Tool #tool nuget:?package=Nutstone.Selenium.Powershell&version=1.0.10
Nutstone Selenium Powershell
Powershell implementation of Nutstone.Selenium.Core
This package wraps the nutstone.seleniu.core package in a series of powershell cmdlet's. A selenium session is created and the relevant version of the Chrome driver is downloaded and used for the session.
Only the Chrome driver is (currently) supported.
The powershell cmdlets mimic the functionalty of the IWebDriverProxy provider implemented in nutstone.selenium.core
The Cmdlets
Open-WebSession
creates a new selenium session and sets up global PS variables used by most other cmdlets. this cmdlet should be the executed before any other selenium-based cmdlets.
Open-WebSession -Headless $false -LeaveBrowserRunning $true --Logfile somefilepath
Get-WebDriver
returns the current instance of IwebDriverProxy. You can then use the methods exposed on this interface to directly communicate with the selenium driver instance
$webDriver = Get-WebDriver
# display available methods on the webdriver
Write-Host ($webDriver | Get-Member | Format-Table | Out-String)
Open-Url
opens a browser at the specified url and waits for it to be 'ready'
Open-Url -Url http://acme:8080/api
Set-Element
populates an html element value (in the browser) from the specified Xpath. Currently supports Action's of Input, Click, Select, SelectMaterial enumerations
Set-Element -Xpath "//*[@id='firstname']" -Value "some value" -Action Input
Get-Element
returns an IwebElement object (see selenium docs) that can be used to manipulate the element
$element = Get-Element -Xpath "//*[@id='firstname']"
$element.Click() # maybe
Close-WebSession
Closes the web session and disposes of associated selenium objects
Close-WebSession
Support cmdlets
todo
Installation
todo
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.55 | 455 | 4/24/2023 |
1.0.54 | 340 | 4/16/2023 |
1.0.53 | 247 | 4/15/2023 |
1.0.52 | 295 | 4/11/2023 |
1.0.51 | 314 | 4/8/2023 |
1.0.50 | 356 | 4/8/2023 |
1.0.48 | 315 | 4/8/2023 |
1.0.47 | 312 | 4/7/2023 |
1.0.46 | 359 | 4/6/2023 |
1.0.45 | 352 | 4/6/2023 |
1.0.44 | 337 | 4/6/2023 |
1.0.43 | 346 | 4/6/2023 |
1.0.42 | 358 | 4/6/2023 |
1.0.41 | 426 | 4/6/2023 |
1.0.40 | 392 | 4/4/2023 |
1.0.39 | 326 | 4/4/2023 |
1.0.38 | 381 | 4/2/2023 |
1.0.37 | 341 | 4/2/2023 |
1.0.36 | 348 | 4/1/2023 |
1.0.35 | 352 | 4/1/2023 |
1.0.34 | 352 | 4/1/2023 |
1.0.33 | 338 | 3/31/2023 |
1.0.32 | 329 | 3/31/2023 |
1.0.31 | 334 | 3/31/2023 |
1.0.30 | 385 | 3/31/2023 |
1.0.29 | 376 | 3/31/2023 |
1.0.28 | 370 | 3/31/2023 |
1.0.27 | 409 | 3/29/2023 |
1.0.26 | 397 | 3/29/2023 |
1.0.25 | 386 | 3/29/2023 |
1.0.24 | 313 | 3/29/2023 |
1.0.23 | 358 | 3/29/2023 |
1.0.22 | 386 | 3/28/2023 |
1.0.21 | 361 | 3/28/2023 |
1.0.20 | 365 | 3/27/2023 |
1.0.19 | 423 | 3/24/2023 |
1.0.18 | 319 | 3/18/2023 |
1.0.15 | 363 | 3/1/2023 |
1.0.14 | 381 | 3/1/2023 |
1.0.13 | 489 | 3/1/2023 |
1.0.12 | 296 | 2/28/2023 |
1.0.11 | 361 | 2/26/2023 |
1.0.10 | 423 | 2/26/2023 |
1.0.9 | 338 | 2/26/2023 |
1.0.8 | 394 | 2/26/2023 |
1.0.7 | 331 | 2/26/2023 |
1.0.6 | 329 | 2/25/2023 |
1.0.5 | 301 | 2/25/2023 |
1.0.4 | 271 | 2/25/2023 |
1.0.3 | 603 | 2/25/2023 |
1.0.1 | 271 | 2/25/2023 |
1.0.0 | 275 | 2/25/2023 |