Skip to content

Commit 84158d0

Browse files
Larry SongLarry Song
authored andcommitted
update readme
1 parent 80d1e3d commit 84158d0

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010
Install-Module Selenium
1111
```
1212

13+
OR
14+
15+
```
16+
Import-Module "{FullPath}\selenium-powershell\Selenium.psm1"
17+
```
18+
1319
# Usage
1420

1521
## Navigate to a URL
@@ -49,4 +55,12 @@ Send-SeKeys -Element $Element -Keys "[email protected]"
4955

5056
```powershell
5157
$Driver = Start-SeChrome -Arguments "headless","incognito"
58+
```
59+
60+
## Wait for an element
61+
```powershell
62+
$Driver = Start-SeChrome
63+
Enter-SeUrl https://www.google.com -Driver $Driver
64+
Wait-SeElementExists -Driver $Driver -Timeout 3 -Id "q"
65+
Wait-SeElementExists -Driver $Driver -Timeout 3 -Name "q"
5266
```

0 commit comments

Comments
 (0)