In VB.NET, I have a windows form where I have a WebBrowser component. I am using proxies to navigate to pages and some proxies are dead/too slow so I want the program to switch to another proxy.
My question is, how can I detect if the WebBrowser has been trying to load the page for a set period of time e.g. it has been 5 seconds since it has been trying to load the page fully?
I am using HTML elements to automate the web browser btw, not sure if this is relevant information though.
Related
I am creating an application in that it gets data from the web view that opens from the page and when the user enters data and then save into that then it saves data into the database using c#.
I have to try to make a local Html webpage and on click of button try to get the value of Html page content but when I try with that I am not able to do that.
I also try with the hosted web URL but can't do that.
I am using .Net standard 2.0.3
Can anyone look into this and suggest to me what should I to do to achieve that?
I've been trying to figure out the ID of a button on a webpage in the VB webbrowser, but as VB uses an outdated web browser so the webpage loads differently to chrome so I can't figure out what the ID of the button is.
Is there any way I can get the ID of a focused element with some code?
Or alternatively, what web browser does VB use, so I can do figure it out manually.
Thanks!
I have a webbrowser control that points at a webpage that holds some fields that change quickly. When these fields change the server seems to request that the webpage refreshes. This poses a problem if programatically interact with the webbroswer. Is there anyway to force the webbrowser to not refresh? No real code to show. since I'm hoping this is a one line property I can create/add.
Maybe you are looking for the WebBrowser.Stop() Method (MSDN)
I am using 2 different webbrowser controls in 2 different forms.
I open a page (www.dropbox.com/login) and login to the application.
When trying to open the same page in another webbrowser control on a different form, the application goes to the post login page, that is the application is already logged in.
How can i avoid this and do something such that both the webbrowser controls i have to login individually?
Prior to IE8 you could call InternetSetOption to end the session for that instance.
I don't think this is possible in IE8 and newer. Instances of the webbrowser control and Internet Explorer all share the same sessions and cookies.
I've pulled down a webpage using a WebRequest object, and need to parse it, but first I need to render it since there is scripting on the page. I don't want to use the WebBrowser control because that forces me to jump out of my current function to the DocumentCompleted event, and "lose my place" (so to speak). Is there any way for me to pull down a URL using a WebRequest object and have the page rendered but still stay in my function? I considered the HTML Agility Pack but don't believe it's any good for my purposes because that won't render the scripting.
in the spirt of ignoring the question :-) you should be able to use webbrowser control without loosing you place
see http://www.codeproject.com/Articles/50544/Using-the-WebBrowser-Control-in-ASP-NET#funct