#include "wd_core.au3"
#include "wd_helper.au3"
Local Enum $eFireFox = 0, _
$eChrome
Local $aDemoSuite[][2] = [["DemoTimeouts", False], ["DemoNavigation", False], ["DemoElements", False], ["DemoScript", False], ["DemoCookies", False], ["DemoAlerts", False],["DemoFrames", False], ["DemoActions", True]]
Local Const $_TestType = $eFireFox
Local $sDesiredCapabilities
Local $iIndex
Local $sSession
$_WD_DEBUG = $_WD_DEBUG_Info
SetupChrome()
_WD_Startup()
$sSession = _WD_CreateSession($sDesiredCapabilities)
_WD_Navigate($sSession, "https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_custom_radio")
ConsoleWrite("Frames=" & _WD_GetFrameCount($sSession) & @CRLF)
$sElement = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, "//iframe[@id='iframeResult']")
_WD_FrameEnter($sSession, $sElement)
$text = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, "//input")
_ArrayDisplay($text)
_WD_FrameLeave($sSession)
Sleep(30000)
_WD_DeleteSession($sSession)
_WD_Shutdown()
Func SetupChrome()
_WD_Option('Driver', 'chromedriver.exe')
_WD_Option('Port', 9515)
_WD_Option('DriverParams', '--log-path="' & @ScriptDir & '\chrome.log"')
$sDesiredCapabilities = '{"capabilities": {"alwaysMatch": {"chromeOptions": {"w3c": true }}}}'
EndFunc
I have tried that example but i still don't know how to click that radio or reach to its ID . I am noob, can you tell clearlier?