Skip to content

Commit 8ed88f0

Browse files
authored
Update 018-BasicFramesDemo.au3
1 parent 72f04d6 commit 8ed88f0

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

examples/018-BasicFramesDemo.au3

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
#AutoIt3Wrapper_UseX64=y
33
#AutoIt3Wrapper_Run_AU3Check=Y
44
#AutoIt3Wrapper_AU3Check_Stop_OnWarning=y
5-
;~ #AutoIt3Wrapper_AU3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 -w 7
5+
#AutoIt3Wrapper_AU3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 -w 7
66

7-
; 001-BasicDemo.au3
7+
; 018-BasicFramesDemo.au3
88

99
#include <GUIConstantsEx.au3>
1010
#include <WindowsConstants.au3>
@@ -49,6 +49,7 @@ Func Main()
4949

5050
#COMMENT This example is based on ==> ; https://github.com/Danp2/au3WebDriver/blob/1834e95206bd4a6ef6952c47a1f1192042f98c0b/wd_demo.au3#L588-L732
5151
#Region - Testing how to manage frames
52+
5253
_NetWebView2_Navigate($oWebV2M, 'https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_iframe', $NETWEBVIEW2_MESSAGE__TITLE_CHANGED, "", 5000)
5354
MsgBox($MB_TOPMOST, "TEST #" & @ScriptLineNumber, 1)
5455
;~ _Demo_NavigateCheckBanner($sSession, "https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_iframe", '//*[@id="snigel-cmp-framework" and @class="snigel-cmp-framework"]')
@@ -73,7 +74,7 @@ Func Main()
7374

7475
ConsoleWrite("! " & @ScriptLineNumber & " : GetFrameUrls() :" & @CRLF & $oWebV2M.GetFrameUrls() & @CRLF)
7576
ConsoleWrite("! " & @ScriptLineNumber & " : GetFrameNames() :" & @CRLF & $oWebV2M.GetFrameNames() & @CRLF)
76-
#EndRegion ; Example part 2 - testing NetWebView2Lib new methodes .GetFrameUrls() .GetFrameNames()
77+
#EndRegion ; Example part 2 - testing NetWebView2Lib new methodes: .GetFrameCount() .GetFrameUrl($IDX_Frame) .GetFrameName($IDX_Frame)
7778

7879
#Region ; Example part 3 - testing NetWebView2Lib new methodes .GetFrameHtmlSource($IDX_Frame)
7980
ConsoleWrite("+ Example part 3 - testing NetWebView2Lib new methodes .GetFrameHtmlSource($IDX_Frame)" & @CRLF)
@@ -84,7 +85,8 @@ Func Main()
8485
ConsoleWrite(@CRLF & "======================================================" & @CRLF)
8586
ConsoleWrite(@CRLF)
8687
ConsoleWrite(@CRLF)
87-
#Region ; Example part 1 - testing NetWebView2Lib new methodes
88+
#EndRegion ; Example part 3 - testing NetWebView2Lib new methodes .GetFrameHtmlSource($IDX_Frame)
89+
8890

8991
#cs NOT SUPPORTED YET
9092
Local $oFrame0 = $oWebV2M.GetFrame(0)
@@ -125,7 +127,7 @@ Func Main()
125127
If @error Then Return SetError(@error, @extended)
126128
#CE
127129

128-
#EndRegion ; Example part 1 - testing NetWebView2Lib new methodes
130+
#EndRegion - Testing how to manage frames
129131

130132
#CS
131133

0 commit comments

Comments
 (0)