Jump to content

Recommended Posts

Posted (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 by czmaster

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
×
×
  • Create New...