ChromeDriver path : By default all driver binaries are saved to /.wdm folder. Installation: Make sure you have Python installed in your system. The latest online version/release will be downloaded automatically if it does not match your local version. Expand collapse popup #include #include #include "wd_3" #include "wd_3" #include #include #include #include Opt ( 'TrayIconDebug', 1 ) Local $sDesiredCapabilities, $iIndex, $sSession Local $nMsg, $lProcess = False Dim Const $maxOffset = 5 Change according to how far you want to search a bigger value means a slower comparison Local $aBrowsers =, _, _ ] Execute browser setup routine for user's browser selection Call ( $aBrowsers ) Local $aDebugLevel =, _, _ ] Set debug level $_WD_DEBUG = $aDebugLevel _WD _Startup ( ) If $_WD_ERROR_Success Then Exit - 1 EndIf $sSession = _WD _CreateSession ( $sDesiredCapabilities ) > THIS IS THE IMPORTANT PART _WD _Navigate ( $sSession, "" ) Sleep ( 333 ) ~ $sElement = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, "//*", Default, True) ~ $sElement = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, "//*", Default, True) $sElement = _WD _FindElement ( $sSession, $_WD_LOCATOR_ByXPath, , Default, True ) ~ $sElement = _WD_ExecuteScript($sSession, "document.getElementsByTagName('a') ") ~ _ArrayDisplay($sElement) if UBound ( $sElement ) > 0 Then For $i = 0 to UBound ( $sElement ) - 1 _WD _ElementAction ( $sSession, $sElement, "click" ) Sleep ( 333 ) Next EndIf Sleep ( 1000 ) > END OF IMPORTANT PART ~_WD_DeleteSession($sSession) ~_WD_Shutdown() ~Exit Func SetupGecko ( ) _WD _Option ( 'Driver', 'geckodriver. Driver-manager will log current chrome version and lastest driver version. Detects local chromedriver driver version on your computer and compares it with the latest version available online.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |