File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 3
3
- Wraps the C# WebDriver for Selenium
4
4
- Easily execute web-based tests
5
5
- Works well with Pester
6
+
7
+ # Installation
8
+
9
+ ``` powershell
10
+ Install-Module Selenium
11
+ ```
12
+
13
+ # Usage
14
+
15
+ ## Navigate to a URL
16
+
17
+ ``` powershell
18
+ $Driver = Start-SeFirefox
19
+ Enter-SeUrl https://www.poshud.com -Driver $Driver
20
+ ```
21
+
22
+ ## Find an element
23
+
24
+ ``` powershell
25
+ $Driver = Start-SeFirefox
26
+ Enter-SeUrl https://www.poshud.com -Driver $Driver
27
+ $Element = Find-SeElement -Driver $Driver -Id "myControl"
28
+ ```
29
+
30
+ ## Click on a button
31
+
32
+ ``` powershell
33
+ $Driver = Start-SeFirefox
34
+ Enter-SeUrl https://www.poshud.com -Driver $Driver
35
+ $Element = Find-SeElement -Driver $Driver -Id "btnSend"
36
+ Invoke-SeClick -Element $Element
37
+ ```
38
+
39
+ ## Send Keystrokes
40
+
41
+ ``` powershell
42
+ $Driver = Start-SeFirefox
43
+ Enter-SeUrl https://www.poshud.com -Driver $Driver
44
+ $Element = Find-SeElement -Driver $Driver -Id "txtEmail"
45
+ Send-SeKeys -Element $Element -Keys "[email protected] "
46
+ ```
You can’t perform that action at this time.
0 commit comments