Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IE 9 automation in vfp problem

Status
Not open for further replies.

EzLogic

Programmer
Aug 21, 2001
1,230
0
0
US
After I upgraded my IE to 9, my vfp code is having some issues now with automation :(

this code still works in IE 8 and prior.

oWeb.document.GetElementbyID("submitButton").click()
and it submits the form as if i am clicking on the button.

on IE 9, its not doing anything.

i even tried:
oWeb.document.forms(0).submit()

anyone have experience in IE 9 to fix this issue?

Ali Koumaiha
TeknoSoft Inc.
Michigan
 
Don't know which page you're automatng, and you don't show your full automation code, but in general it works for me with IE9.

For example:
Code:
Local loIE, loDoc, loTags, loInput

loIE = CreateObject("internetexplorer.application")
loIE.navigate("[URL unfurl="true"]www.google.com")[/URL]
Do While loIE.ReadyState<>4
   DoEvents
EndDo 
loDoc  = loIE.Document
loTags = loDoc.getElementsByName("q")
loInput = loTags.item(0)
loInput.value = "your search"
loDoc.forms(0).submit()
loIE.Visible = .T.

GetElementsByID() would also still work, but google does not set the ID of the search input tag.

Bye, Olaf.
 
Hi Ali, I'm hitting the same thing in a VFP application and I'm wondering if you ever found a resolution. This code has consistently worked for years and now it almost always fails on machines with IE9. However, I've found one machine on IE9 that periodically will work and am still trying to figure out why.

Thanks for any help,

Tim Kline
 
timkvfp,

No, i still have not luck with it.

I have searched and 'googled' as much as i can. i don't know what to do.



Ali Koumaiha
TeknoSoft Inc.
Michigan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top