 |
|
 |
Kiran,
Can u show an example (in vb.net code) of how to access form elements that have been nested within multiple frames and framesets. Thanks in advance!
|
|
|
|
 |
|
 |
Check this article :
Internet Explorer Late Binding Automation
Internet Explorer automation sample code using late binding, without Microsoft.mshtml and shdocvw dependency.
http://www.codeproject.com/KB/cs/IELateBindingAutowod.aspx
|
|
|
|
 |
|
 |
Hello
I used ur code and try to my open the rediffmail compose page. But it didn't works. I debugged the code, after entering the username and password, the submit is not clicked. pls give ur suggestions. Thanks in advance.
venkatesh
|
|
|
|
 |
|
 |
I'am a freash kids,so can u help me?
I want active the NavigateComplete2 events in Form1,but I don't know How to do it.
Event NavigateComplete2(ByVal pDisp As Object, ByRef URL As Object)
from: SHDocVw.InternetExplorer.DWebBrowserEvents2_Event
|
|
|
|
 |
|
|
 |
|
 |
Hi, the inputs type= file does not accept the parameters "value" or "defaultValue".
Is there an alternate method to open a webpage, select a file to upload and click submit, when this type of input is used in the form?
For me, it works fine with text boxes, checkbuttons and submit buttons.
Thanks.
|
|
|
|
 |
|
 |
Hello everyone.
So, I researched several different approches for using VB to login on a webpage. I've tried to apply of these approaches, but I still can't get it to work. (grrr . . ) There's something odd about PG&E's login webpage. I can send both the login name and password, but for some reason the darn thing wont SUBMIT! I can't identify the "GO" button in the list of Element Collections. (I can't get the SendKeys {ENTER} method to work either)
I'm quite dumbfounded!
Could someone please help me identify the problem here? Here's there login webpages:
http://www.pge.com/mybusiness/
heep://www.pge.com/myhome/
Thanks!!!
|
|
|
|
 |
|
 |
Hi Kiran,
I am Deepak,,, I tried your code but I am getting an error like "Unable to cast COM object of type 'System.__ComObject' to interface type 'mshtml.HTMLElementCollection'. This operation failed because the QueryInterface call on the COM component for the interface with IID " I think this is due to type incomppatibility.. Have you ever came across this challenge.. If YES can you please advice me the way to get out of this hurdle... Thanks In Advance....
Deepak Padiyath
|
|
|
|
 |
|
 |
You need Office PIA to install at yours machine
|
|
|
|
 |
|
 |
I've been trying implement this type of functionality into one of my projects, however I always receive a COM error when i try to define the HTMLDoc.
Private Sub Wsearch(ByVal sTerm As String, ByRef wbrowser As SHDocVw.InternetExplorer)
Dim hDoc As mshtml.HTMLDocument
Do
Loop Until Not wbrowser.Busy
hDoc = wbrowser.Document '<<Errors on this line
Errors with Error HRESULT E_FAIL has been returned from a call to a COM component.
Any suggestions?
|
|
|
|
 |
|
 |
I am having the exact same problem. Has anyone found a solution to this? The source of the error is "Interop.SHDocVw". I referenced SHDocVw from the C:\WINDOWS\system32 folder. Is there some other approach I should be taking?
|
|
|
|
 |
|
 |
Update: I also tried referencing "Microsoft Internet Controls" (TypeLib Version 1.1, Path: C:\WINDOWS\system32\ieframe.dll) from the COM tab in the Add Reference window. Still doesn't work.
|
|
|
|
 |
|
 |
Did the same, along with referencing the .NET Microsoft.mshtml library and same error. Also, had been getting "Retrieving the COM class factory for component with CLSID {0002DF01-0000-0000-C000-000000000046} failed due to the following error: 80070005." Checked my registry for that CLSID everywhere, Administrators have Full Access and that's what my account is on the machine where I'm debugging it. Did an unregister and re-register of shdocvw.dll several times with no sucess. I did have the code working at one time but for some reason it's just quit working, even though I didn't change anything.
|
|
|
|
 |
|
 |
It's been awhile, but I think I remember this problem. The solution for me was to abandon use of the WebBrowser object entirely and re-write my code using WebRequest. Details here.[^]
|
|
|
|
 |
|
 |
Yeah, I tried that, at first, but then the site I need to open has SSL with it, and therefore extra effort is needed to put in X509Certificate instances and to pass Windows authentication and I did try it to see if it would work, pointing it at a copy of the certificate file and everything, but the site needed cookies enabled and didn't know how to do this programmatically (that was the webresponse - "Please enable cookies.")... a dead end for me.
Instead I found out how to get it working - I was using impersonation before and when I did a wic.Undo(), it worked. The impersonation account was an admin on my box where the code was being ran, and Administrators had access to launch the Internet Explorer ver 1.0 process in DCOM Config, but it didn't seem to matter to my program - it wanted the logged-in account to be sent or it would throw the Unauthorized access exception I spoke of in my other post. At least I figured out how to get it to work... See http://www.c-sharpcorner.com/UploadFile/gcorrell/IEInstance12062005003909AM/IEInstance.aspx[^].
-Tom
|
|
|
|
 |
|
 |
Hi, can you pls iplement above functionality in C#??
===================
http://Nitin.uk.to
===================
|
|
|
|
 |
|
|
 |
|
 |
Is there anyway to download a file using shdocview?
Or at least get the download file url using shdocview?
|
|
|
|
 |
|
 |
I have a web browser application which has all the objects dinamically created by javascripts. On viewing the source of the page from the EI only the calls to the scripts could be seen.
Is there a way to automate an application like this.
Your help is higly appreciated.
Thanks & Regards,
Vishnu
|
|
|
|
 |
|
 |
You can try SWExplorerAutomation (SWEA) from http://webiussoft.com.
AlexF
|
|
|
|
 |
|
 |
I have a button to save the data but before saving the data, I have a confirmatio message.\
HTMLInputElement HInputEl = (HTMLInputElement)currentDocument.getElementById(strWebTagID);
HInputEl.click();
How can I click the confirmation message.
|
|
|
|
 |
|
 |
Hi,
I started using the IntenetExplorer object to log onto an intranet application that runs on SAP.
When I have logged in, it opens windows and populates them with all sorts of stuff, BUT what's more annoying,
even though a form is displayed, the InternetExplorer object does not seem to contain that form. No links or
subforms are found even though I can do a display source and see the source page.
So I figured since there is a server application, maybe I need to give a kick somehow to the object so that
it will take into account the new contents of the document (updated by the server application)?
Br,
Ragnar
|
|
|
|
 |
|
 |
Hi,
The sample above will open a new page when executing.. How if I would like to do as following:
I have a web page (eg. callEXE.asp), it will call the automated parsing application (as sample above) to execute, upon execute, the automated parsing application will fill some information in the web page for (fillInfo.asp), which is in the same browser.
Please help, thanks.
|
|
|
|
 |
|
 |
Don't ask why, but I need to automate IE through a web application. Because of permission issues, I had to create a console application to run on the server that automates. The asp page calls the console app, and awaits a response. The console application works fine when I run it locally, but when it's called from the asp page, it doesn't navigate. It attempts to get to a page, but never gets there. This is really frustrating me, if anyone could shed some light on the subject I would be ever grateful.
Javier
|
|
|
|
 |
|
 |
Try using the Watin framework. You can automate in easy way...
|
|
|
|
 |