I'm trying to develop a script inside my company so that a focus is made on a certain field and a value is inserted.
I've tried to use the COM concepts I know and it just spins and nothing happens. Should it have a different syntax because it has "IFRAME"?
iWB2 Learner Shows:
------------------------------------------------------------------------------
Title: SystemForm
Input: 41
Url: https://servicemanager.net.system.com.br
Index: 154
Name: instance/number
ID: X20
Frame#: IFRAME.1
Index: 2089
name: mif-comp-721479
id: ext-gen415
------------------------------------------------------------------------------
I try:
Code: Select all
for wb in ComObjCreate("Shell.Application").Windows
If InStr(wb.locationURL, "https://servicemanager.net.system.com.br")
{
V_Span := wb.document.getElementsByTagName("SPAN")
V_Input := wb.document.getElementsByTagName("INPUT")
V_Input.item[41].Focus()
}
Code: Select all
for wb in ComObjCreate("Shell.Application").Windows
If InStr(wb.locationURL, "https://servicemanager.net.system.com.br")
{
wb.document.getElementById("X20").Focus()
}
Code: Select all
for wb in ComObjCreate("Shell.Application").Windows
If InStr(wb.locationURL, "https://servicemanager.net.system.com.br")
{
wb.document.getElementById("X20").contentWindow.document.frames[0].Focus()
}
some help?