File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -247,15 +247,21 @@ EndFunc
247
247
Func DemoFrames()
248
248
Local $sElement
249
249
250
- _WD_Navigate($sSession , " https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_frame_cols " )
250
+ _WD_Navigate($sSession , " https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_iframe " )
251
251
ConsoleWrite (" Frames=" & _WD_GetFrameCount($sSession ) & @CRLF )
252
252
ConsoleWrite (" TopWindow=" & _WD_IsWindowTop($sSession ) & @CRLF )
253
253
$sElement = _WD_FindElement($sSession , $_WD_LOCATOR_ByXPath , " //iframe[@id='iframeResult']" )
254
254
_WD_FrameEnter($sSession , $sElement )
255
255
ConsoleWrite (" TopWindow=" & _WD_IsWindowTop($sSession ) & @CRLF )
256
+ $sElement = _WD_FindElement($sSession , $_WD_LOCATOR_ByXPath , " //iframe" )
257
+ _WD_FrameEnter($sSession , $sElement )
258
+ $sButton = _WD_FindElement($sSession , $_WD_LOCATOR_ByXPath , " //button[@id='w3loginbtn']" )
259
+ _WD_ElementAction($sSession , $sButton , ' click' )
260
+ _WD_LoadWait($sSession , 2000 )
261
+ _WD_FrameLeave($sSession )
262
+ ConsoleWrite (" TopWindow=" & _WD_IsWindowTop($sSession ) & @CRLF )
256
263
_WD_FrameLeave($sSession )
257
264
ConsoleWrite (" TopWindow=" & _WD_IsWindowTop($sSession ) & @CRLF )
258
-
259
265
EndFunc
260
266
261
267
Func DemoActions()
You can’t perform that action at this time.
0 commit comments