From 0d4cfb6435c8ae7ef8904284697975439098b453 Mon Sep 17 00:00:00 2001 From: Alex Kup <116945542+Lifailon@users.noreply.github.com> Date: Thu, 4 May 2023 12:55:06 +0300 Subject: [PATCH] Update README.md --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 714ab23..d0e945b 100644 --- a/README.md +++ b/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()