webbrowser-control

Is there a web browser component for use in FireMonkey application?

岁酱吖の 提交于 2019-11-29 18:28:42
问题 For Delphi VCL there is TWebBrowser and some 3rd party components like TEmbeddedWebBrowser available for browsing a web. Is there a similar web browser component but for Firemonkey framework in Delphi XE2 (ideally with Windows and Mac support) ? 回答1: You can use the ChromiumEmbedded package for Delphi. There's a TChromiumFMX component which is suited for FireMonkey applications. I've tested the demo project from the repository and it works fine for 32-bit Windows. However I can't tell you if

How to clear browsing history using WebBrowser control in C#

痴心易碎 提交于 2019-11-29 18:20:44
I want to clear the browsing history of a WebBrowser control in C# after the WebBrowser completes its browsing. This is my code: try { foreach (string sr in File.ReadAllLines("link.txt")) { webBrowser1.Navigate(sr); webBrowser1.ScriptErrorsSuppressed = true; } while (webBrowser1.ReadyState != WebBrowserReadyState.Complete) { Application.DoEvents(); } } catch(Exception) { MessageBox.Show("Internet Connection not found","Error",MessageBoxButtons.OK,MessageBoxIcon.Error); this.Close(); } Temporary Internet Files System.Diagnostics.Process.Start("rundll32.exe", "InetCpl.cpl,ClearMyTracksByProcess

How to get value from any tag in web browser control using wpf

余生颓废 提交于 2019-11-29 18:01:25
I have a whole web page source code in a string type variable. These code is given below:- <!DOCTYPE html> <html lang="en" dir="ltr" class=""> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;"> <title>Twitter / Authorize an application</title> <link href="https://abs.twimg.com/a/1373417125/tfw/css/tfw.bundle.css" media="screen" rel="stylesheet" type="text/css" /> <!--[if (IEMobile) & (lt IE 9)]> <link href="https://abs.twimg.com/a/1373417125/tfw/css/tfw_iemobile.bundle

Getting mouse click coordinates in a WebBrowser Document

旧时模样 提交于 2019-11-29 17:22:29
I am capturing click coordinates within a PictureBox but I want to achieve the same thing with a WebBrowser. After some research I found out that it is not possible to subscribe to the Mouse Click event of a WebBrowser control. What are the possible ways to capture the clicks? Is there a sort of element which would allow me to navigate through the page but still capture the click? I tried to create a transparent panel but transparent color doesn't mean see through as I see and when the element is in the back also doesn't capture the click, being able to capture the clicks with panel being

How can I navigate a webbrowser programmatically?

*爱你&永不变心* 提交于 2019-11-29 16:33:39
I want to Navigate my web browser with a defined function like: webbrowser1.navigate (my defined function); This webbrowser is defined in a user control so that any one can change its default web page How can I define a function by which the path sets? Try following code: HtmlElementCollection ele = this.webBrowserControl.Document.GetElementsByTagName("Form"); foreach(HtmlElement currentElement in ele) { currentElement.InvokeMember("submit"); } OR webbrowser.Document.All["ID OF ELEMENT"].InvokeMember("click"); Hope Its helpful. 来源: https://stackoverflow.com/questions/15847916/how-can-i

Flow of WebBrowser Navigate and InvokeScript

百般思念 提交于 2019-11-29 16:31:43
问题 I'm having trouble understanding the flow of this function I'm building. public void PortalLogin(AutoResetEvent signal) { // Navigate to portal string portalUrl = "website_name"; string portalEmail = "email@email.com"; string portalPassword = "password"; Action action2 = () => { webBrowser2.Tag = signal; webBrowser2.Navigate(portalUrl); webBrowser2.DocumentCompleted -= WebBrowserDocumentCompleted; webBrowser2.DocumentCompleted += WebBrowserDocumentCompleted; }; webBrowser2.Invoke(action2);

How to call WebBrowser Navigate to go through a number of urls?

家住魔仙堡 提交于 2019-11-29 15:50:00
问题 To collect information on a webpage, I can use the WebBrowser.Navigated event. First, navigate to the url: WebBrowser wbCourseOverview = new WebBrowser(); wbCourseOverview.ScriptErrorsSuppressed = true; wbCourseOverview.Navigate(url); wbCourseOverview.Navigated += wbCourseOverview_Navigated; Then process the webpage when Navigated is called: void wbCourseOverview_Navigated(object sender, WebBrowserNavigatedEventArgs e) { //Find the control and invoke "Click" event... } The difficult part

Why my implementation of IDocHostUIHandler is ignored

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-29 15:48:16
I have created derived control from WebBrowser control that has own IDocHostUIHandler implementation following idea from CreateWebBrowserSiteBase method: The WebBrowser.WebBrowserSite class provides default implementations of the OLE IDocHostUIHandler interface. You can provide your own implementation of this interface or implement any other WebBrowser ActiveX control interface in order to customize the behavior of the control. The problem that is not working. My code looks next way: [PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")] public MyBrowser(){} protected override

Program to automate form field entry and result checking of webpage

一个人想着一个人 提交于 2019-11-29 15:01:10
I am trying to create a program in C# (maybe using WinForms) which will enter a licence number into a form field of a specific website and validate whether or not the licence number is a currently valid licence. I am unsure as to where to start, as I can't even find the form field id in the source code of the website, and am unsure what technologies the website uses. Additionally, the purpose of this program will be to enter a list of license numbers and return the names and validation status of each license. Datasource being the website. Any information on how to go about this would be much

How to embed a web browser control in a cross-platform application?

懵懂的女人 提交于 2019-11-29 14:57:20
问题 I need to write quickly this application: a simple window that wraps a web browser control, that runs html pages. The Browser UI (e.g. Navigation buttons) should be suppressed. As a .net developer, I would embed the WebBrowser OCX in a Windows Form. But this has to run on Mac as well! I found the following cross-platform candidates. Which one would you choose (in terms of simplicity, stableness, community support, etc.): wxWidgets: http://www.kirix.com/labs/wxwebconnect.html QT: http://www