talkfoodtalk Posted May 13, 2014 Share Posted May 13, 2014 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 Link to comment Share on other sites More sharing options...
Danp2 Posted May 13, 2014 Share Posted May 13, 2014 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? Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
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