Update README.md
This commit is contained in:
parent
126dfd08f0
commit
0d4cfb6435
1 changed files with 10 additions and 0 deletions
10
README.md
10
README.md
|
|
@ -1803,6 +1803,16 @@ $inputbox.Submit()
|
|||
$selenium.Close()
|
||||
$selenium.Quit()
|
||||
```
|
||||
### Module Selenium
|
||||
`Install-Module Selenium` \
|
||||
`Import-Module Selenium` \
|
||||
`(Get-Module Selenium).ExportedCommands` \
|
||||
`$Driver = Start-SeInternetExplorer -StartURL https://yandex.ru` \
|
||||
`$Elements = Get-SeElement -Driver $Driver -Selection *`
|
||||
```
|
||||
$path = (ls "C:\Program Files (x86)\Microsoft\Edge\Application\" | ? name -match 1).FullName
|
||||
Rename-Item "$path\BHO" "$path\BHO_" # Disable IE to Edge
|
||||
```
|
||||
### Convert Screenshot Base64 to Image
|
||||
```
|
||||
$Base64img = (($selenium.FindElements([OpenQA.Selenium.By]::CssSelector('#root > div > div.passp-page > div.passp-flex-wrapper > div > div > div.passp-auth-content > div.Header > div > a')))).GetScreenshot()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue