Closed as not planned
Description
Bug report
Describe the bug
_WD_FrameList()
gets list of frames which is not always complete.
It is due to the fact that Not all frames document are load completly.
How to reproduce
use this following code.
Func UserTesting() ; here you can replace the code to test your stuff before you ask on the forum
_WD_Navigate($sSession, 'https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_iframe')
_WD_LoadWait($sSession)
; Example 1 - from 'https://www.w3schools.com' get frame list as string
Local $sResult = _WD_FrameList($sSession, False)
#forceref $sResult
ConsoleWrite("! ---> @error=" & @error & " @extended=" & @extended & " : Example 1" & @CRLF)
ConsoleWrite($sResult & @CRLF)
; Example 2 - from 'https://www.w3schools.com' get frame list as array
Local $aFrameList = _WD_FrameList($sSession, True)
ConsoleWrite("! ---> @error=" & @error & " @extended=" & @extended & " : Example 2" & @CRLF)
_ArrayDisplay($aFrameList, 'Example 2 - w3schools.com - get frame list as array', 0, 0, Default, 'Absolute Identifiers > _WD_FrameEnter|Relative Identifiers > _WD_FrameEnter|IFRAME attributes|URL|Body ElementID|IsHidden')
; Example 2 - from 'https://www.w3schools.com' get frame list as array
$aFrameList = _WD_FrameList($sSession, True)
ConsoleWrite("! ---> @error=" & @error & " @extended=" & @extended & " : Example 2 - again" & @CRLF)
_ArrayDisplay($aFrameList, 'Example 2 - w3schools.com - get frame list as array - again', 0, 0, Default, 'Absolute Identifiers > _WD_FrameEnter|Relative Identifiers > _WD_FrameEnter|IFRAME attributes|URL|Body ElementID|IsHidden')
EndFunc
When first _ArrayDisplay
is displayed wait at least 1 minute before you close the displayed array.
Compare second _ArrayDisplay
result with the frst result.
Also check window.top.document.querySelectorAll('iframe')
in browser console.
Expected behavior
Always full list of frames.
Screenshots
Additional context
none
System under test
not related
Metadata
Metadata
Assignees
Labels
No labels