Jump to content

Getting innerHTML or innerText error "The requested action has failed"


Recommended Posts

is it possible that your script is searching for the innerhtml before the frame has finished loading completely? that is the problem i have sometimes.

my solution was to have my script check that the innerhtml is there, then search it for my string.

it may be sloppy but it's pretty reliable.

Do
$test=_IEPropertyGet($oIE,"innerhtml")
until $test<>""

:alien:

If @error Then
    MsgBox(262192, "", @ComputerName & " slaps " & @UserName & " around a bit with a large trout!")
EndIf

"Yeah yeah yeah patience, how long will that take?"  -Ed Gruberman

REAL search results  |  SciTE4AutoIt3 Editor Full Version

Link to comment
Share on other sites

  • Moderators

frame.document.innerhtml?

But more to the point, if you're looking for a login feature text, it has an id/name/class more than likely.  Look for the object (eg. frame.document.getElementById("idOfTextLoginObject").value/innertext/outertext/innerhtml/outerhtml etc.) and get the text from that.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
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
 Share

×
×
  • Create New...