Information générale
Catégorie:
COM/DCOM et OLE Automation
>>I am having a problem using DOM to automate the submition of forms through IE5. I am following the article in June in Foxpro Advisor. However, it seems that when I submit to the site I am working with, it doesn't do the same thing as when I actually click on the submit button manually, and the reason I suspect is because in the HTML form it seems that the submit assigns a value to a variable (in this case a variable .finished). I don't know how to replicate this through the submit method since it doesn't seem that the submit method accepts parameters. I am trying oIE.Document.Forms(0).submit. I also thought that perhaps assigning the form variable manually before submiting the form would do the job, but this variable actually has a dot in front of the name, so I don't know how to do that either.
>>
>
>
>Call the button's Click method instead of submitting the form.
That makes sense.
>
>oIE.Document.Body.Form1.MySubmitButton.Click()
>
>>On a related issue, my ieref.chm help file is on my hard drive but I cannot open it, it says cannot open the file @MSIT Store:V:\.... So I cannot even access help for IE automation...
>
>Can you read any chm files?
Yes, I can read every other chm file I tried....
Précédent
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