Was hoping to get some answers from the same topic, but it appears that one is close to being closed.
I am working with BMC Remedy (thin client) and have not gotten very far with trying to automate filling in fields, as I am unable to locate what type of field it is.
While trying to create a new incident, there is a Summary* field that I have tried to find out what it is, but am unable. I have tried form, table, and frame. I am about to give up and just use _SendEx() to do what I want, but thought I would try something new today. As of this time, I have put in about 5 hours trying to just find out how to get the name of a field.
When trying to show forms on page, I get 0 (Zero)
I get lots of tags/innerText, but only a couple with the word Summary in it:
I want to know how to find the name of the field, what type it is, and how to update it with _IEFormElementSetValue??? Any ideas?
I am working with BMC Remedy (thin client) and have not gotten very far with trying to automate filling in fields, as I am unable to locate what type of field it is.
While trying to create a new incident, there is a Summary* field that I have tried to find out what it is, but am unable. I have tried form, table, and frame. I am about to give up and just use _SendEx() to do what I want, but thought I would try something new today. As of this time, I have put in about 5 hours trying to just find out how to get the name of a field.
When trying to show forms on page, I get 0 (Zero)
I get lots of tags/innerText, but only a couple with the word Summary in it:
Quote
Tagname: LABEL
innerText: Summary*
--> IE.au3 V2.4-0 Warning from function _IEFormGetObjByName, $_IEStatus_NoMatch
--> IE.au3 V2.4-0 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Error from function _IEFormElementGetObjByName, $_IEStatus_InvalidObjectType
--> IE.au3 V2.4-0 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType
Tagname: LABEL
innerText: Summary
--> IE.au3 V2.4-0 Warning from function _IEFormGetObjByName, $_IEStatus_NoMatch
--> IE.au3 V2.4-0 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Error from function _IEFormElementGetObjByName, $_IEStatus_InvalidObjectType
--> IE.au3 V2.4-0 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType
innerText: Summary*
--> IE.au3 V2.4-0 Warning from function _IEFormGetObjByName, $_IEStatus_NoMatch
--> IE.au3 V2.4-0 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Error from function _IEFormElementGetObjByName, $_IEStatus_InvalidObjectType
--> IE.au3 V2.4-0 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType
Tagname: LABEL
innerText: Summary
--> IE.au3 V2.4-0 Warning from function _IEFormGetObjByName, $_IEStatus_NoMatch
--> IE.au3 V2.4-0 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Error from function _IEFormElementGetObjByName, $_IEStatus_InvalidObjectType
--> IE.au3 V2.4-0 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType
I want to know how to find the name of the field, what type it is, and how to update it with _IEFormElementSetValue??? Any ideas?
[ autoit ]
#include <IE.au3> ;LABELinnerText: Summary $oIE = _IECreate("[url="https://rsvpn.raytheon.com/arsys/forms/remedyapps.mck.us.ray.com/HPD:Help+Desk/Default+User+View/,DanaInfo=remedy.mck.us.ray.com,SSL+?cacheid=e2601e23"]XXX[/url]") ; unable to post URL as it is work related #cs Local $oForms = _IEFormGetCollection($oIE) MsgBox(0, "Forms Info", "There are " & @extended & " forms on this page") For $oForm In $oForms MsgBox(0, "Form Info", $oForm.name) Next Local $oForms = _IEFormGetObjByName($oIE, "", -1) For $oForm In $oForms MsgBox(0, "Form Info", $oForms.name) Next #ce ;#cs Local $oElements = _IETagNameAllGetCollection($oIE) If @error Then MsgBox('', [email="'@error'"]'@error'[/email], @error) ; WORKS and gets all Tags For $oElement In $oElements If StringInStr($oElement.tagname, 'Summary') Or StringInStr($oElement.innerText, 'Summary') _ And Not StringInStr($oElement.tagname, 'HTML') _ And Not StringInStr($oElement.tagname, 'Body') _ And StringInStr($oElement.tagname, 'Label') Then ConsoleWrite("Tagname: " & $oElement.tagname & @CR & "innerText: " & $oElement.innerText) ConsoleWrite(@CRLF & @CRLF) #cs Local $oInputs = _IETagNameGetCollection($oIE, $oElement.tagname) For $oInput In $oInputs ConsoleWrite("Form: " & $oInput.form.name & " Type: " & $oInput.type) ConsoleWrite(@CRLF & @CRLF) Next #ce ; $oQuery = _IEFormGetObjByName($oIE, $oElement.innerText) _IEFormElementSetValue($oQuery, "AutoIt IE.au3") $oQuery = _IEFormElementGetObjByName($oIE, $oElement.tagname) _IEFormElementSetValue($oQuery, "AutoIt IE.au5") #cs Local $oInputs = _IETagNameGetCollection($oIE, $oElement.innerText, -1) For $oInput In $oInputs ConsoleWrite("Form: " & $oInput.form.name & " Type: " & $oInput.type) ConsoleWrite(@CRLF & @CRLF) Next #ce EndIf Next ;#ce