Jump to content

Get SRC URL from an IFrame.


Recommended Posts

The Browser is Embedded Microsoft Edge Browser in the Desktop App

#include "UIAWrappers.au3"
#include "CUIAutomation2.au3"

Local $oP13=_UIA_getObjectByFindAll($UIA_oDesktop, "Title:=RIMBAXXX;controltype:=UIA_WindowControlTypeId;class:=TfrmMain", $treescope_children)
;_UIA_Action($oP13,"setfocus")
Local $oP12=_UIA_getObjectByFindAll($oP13, "Title:=;controltype:=UIA_PaneControlTypeId;class:=TEdgeBrowser", $treescope_children)
;_UIA_Action($oP12,"setfocus")
Local $oP11=_UIA_getObjectByFindAll($oP12, "Title:=;controltype:=UIA_PaneControlTypeId;class:=Chrome_WidgetWin_0", $treescope_children)

;Get Hold of the Frame. ( the iframe has an id which is "main-iframe" )

Local $iframeItem =_UIA_getObjectByFindAll($oP11,"controltype:=UIA_DocumentControlTypeId;id:=main-iframe", $treescope_subtree)
    if isobj($iframeItem ) Then
      ;  _UIA_DumpThemAll($iframeItem ,$treescope_subtree)

 EndIf

How do i get the SRC url of the Iframe ?

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...