Information générale
Catégorie:
Applications Internet
Hi, It seems that ReadState<>4 does not always work. I wonder if there might be more than one frame on the page, each with its own ReadyState? Would you know how to find that out? Is DownloadComplete better? But I don't know how to use it? Below, I have a <--- where I have inserted a manual "wait". Note, I don't have this problem with the Yahoo page but I am using it as an example.
Thanks
STeve
release all like o*
oie=NEWOBJECT("_webform",HOME()+"\gallery\_webview")
myUrl = "www.yahoo.com"
oie.olewebBROWSER.Navigate2(myUrl)
do while oIE.oleWEBBROWSER.ReadyState <>4
enddo
oie.WindowState= 2
oie.AlwaysOnTop= .T.
oie.Show()
oie.olewebBrowser.Document.Forms(0).p.value = "Claudio"
oie.olewebBrowser.document.forms(0).submit()
do while oIE.oleWEBBROWSER.ReadyState <>4
enddo
wait &&<<<<<<<<<<<<<<<----------------------- WAIT
oIE.olewebBrowser.Navigate2(oIE.olewebBrowser.document.links(14).href)
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement