Sign in to follow this  
Followers 0
talkfoodtalk

IE DOM Ajax Debugbar confusion

2 posts in this topic

Hi,

Attached is a picture of DebugBar. I am trying to retreave the text from the Inputbox highlighted in the picture.

I am getting _IEStatus_NoMatch with the following code. Its from the "$oTable = _IETagnameGetCollection($oDiv, "directoryNumber", 0) ; get first table" line.

Can somone please advise on how I can retrieve text from "INPUT type=text name=directorynumber" box?

#include <IE.au3>
#include <MsgBoxConstants.au3>

$oIE = _IEAttach("My test explorer window", "windowtitle")
  If @error Then
      MsgBox($MB_SYSTEMMODAL, "Error", "test")
;~    Local $oIE = _IECreate("https://crt.isp.sky.com/login.php")
 EndIf


$oDiv = _IEGetObjById($oIE, "x-auto-178")
$oTable = _IETagnameGetCollection($oDiv, "directoryNumber", 0) ; get first table
;~ $oTR = _IETagnameGetCollection($oTable, "tr", 0) ; get first TR
;~ $oTD = _IETagnameGetCollection($oTR, "td", 0) ; get first TD


ClipPut($oDiv.innertext)

_IEAction($oDiv, "click")
_IEAction($oDiv, "copy")

Kind Regards

Dave

test2.bmp

Share this post


Link to post
Share on other sites



I am getting _IEStatus_NoMatch with the following code. Its from the "$oTable = _IETagnameGetCollection($oDiv, "directoryNumber", 0) ; get first table" line.

You are misusing_IETagnameGetCollection. You don't pass it the name of a tag; you pass it the type of element you wish to retrieve (ie: IMG, Div, Input, etc).

Can somone please advise on how I can retrieve text from "INPUT type=text name=directorynumber" box?

Did you try with _IEFormElementGetObjByName and _IEFormElementGetValue?

Share this post


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
Sign in to follow this  
Followers 0