

Many testers face this challenge and waste precious time and resources on manual steps that could be automated.įortunately, there is a solution: chromedriver_autodownload feature in appium. 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.Have you ever wanted to automate your mobile browser testing with Robot Framework, but got stuck with installing and updating the chromedriver? If so, you are not alone.
