iWebBrowser shows the button as being in the frame iFramePSHost, with innertext=Submit. OuterHTML = <SPAN class=uif_m_inner>Submit </SPAN>
Here's the code I'm trying to use:
url = http://www.dell.com/support/drivers/us/en/04/DriversHome/NeedProductSelection
pwb := ComObjCreate("InternetExplorer.Application")
;navigates to the url
pwb.Navigate(url)
pwb.visible := true
While pwb.readyState <> 4 || pwb.document.readyState <> "complete" || pwb.busy
Sleep, 10
frame := pwb.document.all["iFramePSHost"].contentWindow
frame.document.all["TheProductSelectorResultsModel_ServiceTagCode"].value := Tag
link = "Submit"
frame.document.all[link].click(), frame.document.all[link].fireEvent("onclick")I know the frame is being targeted correctly because the text field just above the Submit button (and in the same frame) is being assigned correctly. I've also tried using this script from the COM guide:Links := Frame.Document.Links
Loop % Links.Length
If (Links[(A_Index - 1)].InnerText = "Submit") {
Links[(A_Index - 1)].Click()
break
}This code doesn't work on this page. I've also tested it by adding:msgbox % Links[A_Index-1].InnerTextThis reveals that the only link recognized within the frame is the Where To Find Your Service Tag link--the Submit button is not recognized as a link.
I'm sure this is super-simple, but I've been trying to figure out what I'm doing wrong with this for a couple of hours now. Can somebody take a look at the page and this code and give me an idea of what the problem is?
Thanks!




