czmaster Posted November 24, 2018 Posted November 24, 2018 (edited) Hello I would like to interact with object of an iFrame present on a web page (click), but autoit bug each time When I use the _IEFrameGetCollection function or when I try to get the Iframe with _IETagNameGetCollection ($ oIE, iframe), I allways get an error when i try to access on IFrame objects. #include <IE.au3> $oIE=_IECreate("https://xxx") Local $oFrames = _IEFrameGetCollection($oIE) Local $iNumFrames = @extended; work Local $sTxt = $iNumFrames & " frames found" ; 11 iframes $oFrame = _IEFrameGetCollection($oIE, 2) $sTxt &= _IEPropertyGet($oFrame, "innertext") ;"C:\Program Files (x86)\AutoIt3\Include\IE.au3" (2294) : ==> The requested action with this object has failed.: $oTemp = $oObject.document.body This code comes from the help of autoit, I just opened a non-local web page . With a local page it seems to work better, is there a security or other that prevents access to iFrames ? Thank you Edited November 24, 2018 by czmaster
Danp2 Posted November 24, 2018 Posted November 24, 2018 Likely due to the iframe source coming from a different domain. Can't say for sure with the limited information provided. Latest Webdriver UDF Release Webdriver Wiki FAQs
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now