Questions tagged [tedgebrowser]

For questions about the Delphi TEdgeBrowser component (MS Edge based on Chromium).

38 questions
12
votes
1 answer

TEdgeBrowser component: calling native code from a script running on the embedded web page

Currently we use TWebBrowser component to embed IE to our desktop application. To call a Delphi code from a script running in the embedded browser we have implemented support for the window.external object as described here:…
stepand76
  • 467
  • 6
  • 17
11
votes
3 answers

Using WebView (EdgeHTML) in Delphi / C++ Builder

Am I understanding correctly that EdgeHTML is now available to desktop (Win32/Win64 applications) now in Windows 10? According to these blog…
Coder12345
  • 3,431
  • 3
  • 33
  • 73
3
votes
3 answers

TEdgeBrowser for Delphi 10.4.1 and later: How to trap F12 (OpenDevToolsWindow)?

I am using TEdgeBrowser in Delphi 10.4.1. It works very well. The only nagging issue is, when TEdgeBrowser has focus, it grabs F12 and CTRL+SHIFT+C and presents the OpenDevToolsWindow. This is great, except I want to change some of the topmost…
stackman
  • 37
  • 6
3
votes
0 answers

Printing from TEdgeBrowser in Delphi

Is there a way to print from the TEdgeBrowser implementation in Delphi? In the older TWebBrowser we used the following code that worked: ControlInterface.ExecWB(OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER, varIn, varOut); But the TEdgeBrowser…
Julian
  • 41
  • 2
3
votes
1 answer

How can I redirect a TEdgebrowser popup window to my own form?

With the TEdgeBrowser.OnNewWindowRequested event, I can obviously tell that a new window is about to open, but how can I capture the output to my own custom TForm with a second TEdgeBrowser component?
3
votes
2 answers

How to set useragent in new Delphi TEdgeBrowser?

I need to change the user agent in the TEdgeBrowser How to set useragent in new Delphi TEdgeBrowser VCL ? Also any workarounds are welcome!
AC1D
  • 248
  • 5
  • 16
3
votes
1 answer

TEdgeBrowser Navigate fails with error "File not found"

My first attempt to try the new TEdgeBrowser fails with 'The system can't find the file' procedure TFrmTEdgeBrowser.BtnNavigateClick(Sender: TObject); var lErrCode: Integer; begin if not EdgeBrowser.Navigate('https://www.google.com') then begin …
Jan Doggen
  • 8,799
  • 13
  • 70
  • 144
2
votes
0 answers

Extract data from website using TEdgeBrowser Delphi 10.4

I would like to know how to extract some data from this website https://estrelabet.com/ptb/games/detail/casino/demo/7787 It is a game. I need to extract the last coeficient of each round, and the total of bets to feed a table. For example: Total…
2
votes
1 answer

Fetch cookies from WebView2 Edge website login for WinInet/WinHTTP crawl

Suppose I am using WinInet/WinHTTP for crawling a website. In the past I could simply ask a user to login to a website using either embedded IE control or the IE browser and WinInet would use the same cookies as the IE browser. Now that will not…
Tom
  • 3,587
  • 9
  • 69
  • 124
2
votes
0 answers

How to get HTML SOURCE with Delphi Sydney 10.4.2 and Edge Webbrowser Component

I have TEdgeBrowser in Delphi 10.4.2. I would like to extract a RegEx-based string from the HTML code. In the past, it was possible with TWebBrowser (only with IE 11 or below) as selectedEngine. But my site wants no IE 11+ anymore. So I have to use…
Walter Schrabmair
  • 1,251
  • 2
  • 13
  • 26
2
votes
1 answer

How to use TEdgeComponent with oficial release of Microsoft Edge

Is it possible to use the Delphi 10.4 TEdgeComponent with the official release of Microsoft Edge and WebView2 insted of the Edge Canary channel? I have installed the oficial release of edge with the latest WebView2 avaiable…
Leo Bruno
  • 474
  • 3
  • 16
2
votes
1 answer

Microsoft.WebView2 & Edge

I'm trying to use Microsoft.WebView2 from microsoft.web.webview2.0.9.579.nupkg (TEdgeBrowser example from Delphi 10.4 Version 27.0.38860.1461) This version works with canary or beta versions of Edge only. With release of Edge I got an error message…
1
vote
1 answer

How to write a lambda function which gets executed after TEdgeBrowser ExecuteScript?

I have TEdgeBrowser and I am using ExecuteScript method from the DefaultInterface like this: EdgeBrowser1->DefaultInterface->ExecuteScript() ExecuteScript, when called this way takes 2 parameters: System::WideChar * javaScript and const…
Coder12345
  • 3,431
  • 3
  • 33
  • 73
1
vote
1 answer

TedgeBrowser how to give the option CoreWebView2EnvironmentOptions.Language

With Delphi 11.3, i use the webview2 via the tedgeBrowser component. The application using the Tedgebrowser is running on servers running an english Windows. By default the tedgebrowser has a navigator.language value to "en-US". But i want to be…
Marianne
  • 13
  • 4
1
vote
0 answers

Delphi TEdgeBrowser and OnNavigate event POST data

Trying to move from TWebBrowser to TEdgeBrowser. In a particular use case when a website is redirecting I am capturing the redirect and am also capturing the HTTP POST data and the XML contained therein and making use of the PostData variable in the…
1
2 3