Jump to content

View the second object in IE

Recommended Posts


#include <IE.au3>
$oIE = _IECreate()
_IENavigate($oIE, 'https://www.deepl.com/it/translator#es/en/'&'hola a todos', 1)
$oInputs = _IETagNameGetCollection($oIE, 'textarea')

$sTxt = ""
For $oInput In $oInputs
    $sTxt &= $oInput.innertext & @CRLF&@CRLF
MsgBox($MB_SYSTEMMODAL, "Form Input Type", "Form: " & $oInput.form.name & @CRLF & @CRLF & "         Types :" & @CRLF & $sTxt)

Using the above code I'm able to get all the textarea objects in the page. Now, how can I get and pass to MsgBox only the second one? Is there a way to do it using something like $oInputs[1] ?

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...