VFP 9 SP2
IE 9
I have a website that i am automating a task for a client.
In IE, on the website, there is a text box where user enters a serial number, and when they tab out of it (lostfocus/onblur), the site checks the serial number and responds back with a message.
i am trying to invoke the steps:
i got so far
it fills in the form field.
now, i'm trying to submit the form, or invoke on blur.
so, i tried:
aa = oWeb.document.GetElementByID("FieldOntheSite")
aa.FireEvent("OnBlur")
tried oWeb.document.forms[0].submit
etc..
any idea?
Ali Koumaiha
TeknoSoft Inc.
Michigan
IE 9
I have a website that i am automating a task for a client.
In IE, on the website, there is a text box where user enters a serial number, and when they tab out of it (lostfocus/onblur), the site checks the serial number and responds back with a message.
i am trying to invoke the steps:
i got so far
Code:
PUBLIC oWeb
IF TYPE("oWeb") <> "O"
oWeb = CREATEOBJECT("InternetExplorer.Application")
oWeb.Visible = .t.
ENDIF
oWeb.Navigate(lcURL)
Waitforie(oWeb)
oWeb.document.GetElementByID("FieldOnTheSite").value = lcSerial
it fills in the form field.
now, i'm trying to submit the form, or invoke on blur.
so, i tried:
aa = oWeb.document.GetElementByID("FieldOntheSite")
aa.FireEvent("OnBlur")
tried oWeb.document.forms[0].submit
etc..
any idea?
Ali Koumaiha
TeknoSoft Inc.
Michigan