Last year I had a question on automation of IE9 (and up) within VFP.
(Ebay.com (and "pass") is just an example so you can test it)
The focus(),select() and submit() commands did not work anymore in IE9 and higher whereas it did in IE8 or in a VBS script. My solution was to do this automation therfore in a VBS script called from within VFP.
Today I was just playing around with this stuff, and suddenly it worked when I put an extra parameter in the focus(), select() or submit() commands in my VFP program. Like select(1) or select(.t.) or even select("hello").
So I don't need the VBS script anymore.
I have no idea whether the parameter has any meaning because either way, numeric, string, date or boolean/logical works.
And IE8 en VBS script also work perfectly with an extra parameter.
I put my findings here for if someone in the future comes across the same problem.
Code:
ieo=createobject("InternetExplorer.Application")
ieo.navigate("[URL unfurl="true"]https://signin.ebay.com/ws/eBayISAPI.dll?SignIn&ru=http%3A%2F%2Fwww.ebay.com%2F")[/URL]
ieo.visible=.t.
do while ieo.readystate<>4
=inkey(0.1)
enddo
ieo.document.getElementbyId("pass").focus()
ieo.document.getElementbyId("pass").select()
(Ebay.com (and "pass") is just an example so you can test it)
The focus(),select() and submit() commands did not work anymore in IE9 and higher whereas it did in IE8 or in a VBS script. My solution was to do this automation therfore in a VBS script called from within VFP.
Today I was just playing around with this stuff, and suddenly it worked when I put an extra parameter in the focus(), select() or submit() commands in my VFP program. Like select(1) or select(.t.) or even select("hello").
Code:
...
ieo.document.getElementbyId("pass").focus(1)
ieo.document.getElementbyId("pass").select(1)
So I don't need the VBS script anymore.
I have no idea whether the parameter has any meaning because either way, numeric, string, date or boolean/logical works.
And IE8 en VBS script also work perfectly with an extra parameter.
I put my findings here for if someone in the future comes across the same problem.