Questions tagged [cefsharp]
.NET (WPF and Windows Forms) bindings for the Chromium Embedded Framework
1,650
questions
0
votes
0
answers
25
views
Angular 13 application does not load on Cefsharp version 57.0.0.0
We use Cefsharp browser version 57.0.0.0 to load our Angular application.
After upgrading the application to Angular 13, it just displays the initial loading page and does not route to the right ...
0
votes
1
answer
27
views
Escaping Javascript and html string with CefSharp
Context:
I want to load HTML code using a CEFSharpBrowser embedding a TinyMce JS.
The correct way to do it is:
Dim browser As ChromiumWebBrowser
Dim strHTMLPageCode As String = "<p>Hello<...
-1
votes
0
answers
28
views
very low performance when using multeple Cefsharp.Wpf.ChromiumWebBrowser
What version of the product are you using?
102.0.100
What architecture x86 or x64?
x64
What version of .Net?
.Net Framework 4.6.1 or .Net 6.0
On what operating system?
Win10
Are you using WinForms, ...
-1
votes
0
answers
17
views
Cefsharp 86.0.241.0 does not trigger LoadError event for 401 errors
We are using Cefsharp 86.0.241.0 which does not seem trigger LoadError event on http 401 error. As per this post it seems it is not triggering LoadError event on 4xx errors. But I am posting this ...
-1
votes
1
answer
19
views
Iframe won't load content until devtools are opened
Problem:
I use CEFSharp to serve local content in a C# application.
In some cases I've got several iframes that should load different local URLs based on user actions.
I load content in those iframes ...
-1
votes
0
answers
26
views
Automation test of AngularJS app hosted under CefSharp browser in WPF by using Cypress [closed]
We have a wpf application that uses cefsharp browser to host web site (AngularJS) - in other words - hybrid application.
We're interested to run an automation test in Cypress.
Before we had ...
0
votes
0
answers
44
views
ChromiumWebBrowser - how to set height to HTML doc height
I have a chromiumWebBrowser hosted in my application.
user can navigate between html pages (with binging to address).
I need xaml scroller (not css), so I have a scrollViewer and inside the Chromium ...
0
votes
0
answers
29
views
+50
Cef3: How do I switch the YouTube window layout between 1 and 4 columns?
I am trying to copy another app's behaviour. The other app uses CefSharp to show YouTube.
The app offers 2 YT window layouts:
1 column
4 columns
I don't understand how they do that or influence that....
0
votes
0
answers
20
views
SyntaxError: Unexpected identifier: Javascript with Cef3
I am using a CEF3 based browser which offers the .Eval(Javascript) method.
I would like to include ad blocking in my app.
I found the following code here:
string adblock = "function C(d,o){v=d....
0
votes
0
answers
17
views
Cef Sharp Execute JS
I want to execute JS code, in my cef sharp wpf project.
string jsScript = @"let fakeUserAgent = ""Mozilla / 5.0(Windows NT 10.0; Win32; x64) AppleWebKit / 537.36(KHTML, like Gecko) ...
0
votes
1
answer
31
views
CefSharp showing odd margins
I've just been starting with CefSharp as an embeddable web browser, to replace the default WinForms webbrowser (by wrapping either in my own class). (I didn't want to use the 'minimal example' that ...
0
votes
1
answer
29
views
How to optimize CEFSharp in WinForms to render heavy applications (such as THREEJS)?
I developed a winforms that shows the user a web application that uses 3D rendering (with THREEJS). The problem is that not every client has a good enough CPU to use this application. The application ...
0
votes
1
answer
22
views
How can I make CefSharp.Wpf.HwndHost open the touch keyboard
We've historically used CefSharp.Wpf + Touch keyboard sample to open the tablet keyboard on a WPF Kiosk that wraps CEF Sharp. Since it is using CefSharp.Wpf - we are facing the relatively common GPU ...
0
votes
1
answer
43
views
How does CefSharp inject JS into new pages opened in Windows.open
My Winform application uses CefSharp,
When I open page1.html in CefSharp,
the page1.html is not my own page and I have no control over the code of this page.
The page1.html code looks like this:
<...
0
votes
0
answers
16
views
Keyboard shortcuts are not working for website hosted using CefSharp
we have hosted website inside WPF application using CefSharp 85 and it seems keyboard shortcuts of that websites are not working. e.g = to zoom.
Does anyone know how I can make the Chromium Control ...
0
votes
1
answer
32
views
How can I resize cefsharp devtools when it is minimized?
When using cefsharp on winforms, after opening devtools, when minimized, devtools disappears! It is not in the taskbar. It cannot be opened again. What should I do? Call browser.ShowDevTools() again ...
0
votes
0
answers
36
views
How to automate cefsharp browser that is embedded to a wpf application using selenium C#?
I have a wpf application which is embedded to a cefsharp browser, I need to enter my login credentials in cefbrowser first for accessing the wpf application?
Can someone please help me with this as I'...
0
votes
1
answer
46
views
Error adding ChromiumWebBrowser to project - C# Visual Studio
I am trying to add the Cef.WinForms library to my project and I'm following the steps found here
https://tutorialslink.com/Articles/DEVELOPING-CHROMIUM-BASED-BROWSER-IN-Csharp/1468. I was able to add ...
-1
votes
0
answers
30
views
How to execute a lua script with wearedevs api with cefsharp
So im trying to create a roblox exploit i implemented the cefsharp chromium browser and set the address to my monaco.html text editor
im using wearedevs api for my exploit
but i cant seem to find ...
0
votes
0
answers
25
views
CefSharp.Wpf: FileLoadException when trying to load assembly
We have an old legacy application that is running with MS Access. We are in the process of migrating it to WPF. For that we created a WinForms control, that is showing our new WPF stuff in an ...
0
votes
1
answer
26
views
How to stop CefSharp ChromiumWebBrowser from following links
Right now we use the old WPF WebBrowser control to show a web site in our program. Since this old control is based on Internet Explorer 11 and a lot of newer web sites show a message, that they are ...
0
votes
0
answers
61
views
CefSharp offscreen not freeing memory
Based on CefSharp.MinimalExample i created similar issue to that im having in my app. I creating many browsers in background, every of them have certain tasks, and then they should close and dispose. ...
0
votes
1
answer
30
views
Winforms' ContextmenuStrip and ChromiumWebBrowser
I need to show Winforms ContextMenuStrip but ChromiumWebBrowser gets in the way. By getting in the way I mean the ContextMenuStrip loses some of its significant behavior like the ability to process ...
0
votes
2
answers
45
views
CefSharp possible to load html content?
I need to create a application which loads a html "template" file and parse them with current data values. So far no problemm but does anyone knows how to load the parsed html value into the ...
0
votes
2
answers
33
views
Source Code Different When Using CefSharp Function GetSourceAsync() than when Calling ViewSource()
I have the latest version of CefSharp installed and when I call ViewSource(), it opens up a notepad window with the source code. But when I call GetSourceAsync() the code is very different and missing ...
0
votes
1
answer
28
views
Is there any way to use lower camel case style when pass object from .NET to JavaScript in CefSharp?
Lower camel case style is convention in JavaScript. Default is not lower camel case style when I pass object from .NET to JavaScript in CefSharp.
public void GetTestDataWithCallback(...
0
votes
1
answer
47
views
Is there any way to await animation completion in Javascript
This is probably a long shot, however I need to fix this somehow, if you have any other tips that could help me achieve the same end result please let me know!
I have a with a bunch of items with ...
0
votes
0
answers
105
views
CefSharp Winforms - Some Web-Sites load then goes blank
CefSharp work well, except for a couple of specific web-sites will load and then go blank; which takes about 5 seconds after it loads. I can reload them.. and, they will go blank again; after about ...
0
votes
0
answers
26
views
CefSharp browser jumps (scrolls up) when "PrintToPdfAsync" method is called
I am using the "PrintToPdfAsync" method https://cefsharp.github.io/api/63.0.0/html/M_CefSharp_WebBrowserExtensions_PrintToPdfAsync.htm to export HTML view to pdf. However I am experiencing ...
0
votes
1
answer
24
views
I am trying to get html tag name on Mouse click into Winforms RichTextbox in CEFSharp but getting null as Exception
I am trying to get the Selected Html tag element on mouse click. I am using CEFSharp. For example, when a client will click on the H1 or P tag, the selected HTML tag element name will be on ...
1
vote
0
answers
60
views
Cefsharp chromium browser throws error on Windows 2012 R2
In my windows application I'm using Cefsharp ChromiumWebBrowser control. I can successfully load a URL if I run the application on Windows 10 OS but with same set of dll's copied onto Windows 2012 R2 ...
0
votes
1
answer
44
views
Trying to programatically click a button on a web page with cefsharp
I'm using cefsharp and vb.net to put some code together to move to the next page of this site:
https://www.recommendedagencies.com/search#{}
The idea is to read the list of company names on each page ...
0
votes
1
answer
41
views
CefSharp FontResource ISchemeHandlerFactory
Is it possible to intercept the font request inside a CSS file?
We have the following CSS file:
@font-face {
font-family: 'Material Icons';
font-style: normal;
font-weight: 400;
src: local('...
0
votes
0
answers
64
views
CefSharp loads really slow- takes 40 seconds to show up inside a WPF app in a specific customer's VM
We are running a WPF app and have CefSharp control embedded inside it.
The app works fine in most the machines but takes about 30-40 seconds to load in on a specific customer's VM.
We already tried:
...
-1
votes
1
answer
52
views
JavaScript How to output the value of result1 and result2
The script below outputs only the value of variable "result2"
How to output the value of "result1" and "result2" without using console.log, cuz i will put this script in ...
0
votes
0
answers
48
views
CefSharp background extension
I want to load a Chrome extension in a CefSharp browser.
I know that extensions are different in CefSharp.
I'm using the CefSharp example in the official github to try load my extension.
I have the ...
1
vote
1
answer
147
views
CefSharp WinForms 101 read the cookies from browser -- VisitAllCookies now undefined
This code that worked perfectly on these following version of cefsharp.
cef.redist.x86 v3.2171.2069
CefSharp.Common v39.0.0
CefSharp.Winforms v39.0.0
public ChromiumWebBrowser Chromebrowser;
...
0
votes
1
answer
63
views
CefSharp how i click button
= Add to Cart
browser.ExecuteScriptAsyncWhenPageLoaded("document.getElementsByClassName('btn_addtocart').click()")
not working pls help ,, thanks
0
votes
1
answer
71
views
Not working CefSharp.Handler.DialogHandler on Ctrl+O vscode.dev
I`m trying to handle OpenFolderDialog on VS Code for Web using CefSharp WPF. But extending CefSharp.Handler.DialogHandler does not result in handling folder dialogue. There is a code example:
chromium ...
0
votes
1
answer
46
views
Synchronous JavaScript calls with CefSharp
I have to modify a project (C#) that uses CefSharp to automate a web task.
Each time the code needs to execute a piece of Javascript, it uses:
browser.ExecuteScriptAsyncWhenPageLoaded(script);
But ...
0
votes
0
answers
21
views
Published Cefsharp application not starting
I'm not sure if I'm missing something obvious. I'm pretty new to Visual Studio. My application works without any hiccups in Debug and Release. However, when I try to publish my application it doesn't ...
0
votes
1
answer
34
views
Get loaded page source in CefSharp webbrowser
I'm wanting to get source code of a web page based on Angular (so cannot use HttpClient or WebClient, page source completes after running JS), tried to use CefSharp (v.100) but cannot find a way to ...
0
votes
1
answer
59
views
Does CefSharp support the promises of the JavaScript?
JavaScript code below works in the console of the Browser.
But when i put this code in CefSharp, CefSharp returns null.
Im using CefSharp 100.0.120-pre.
Does CefSharp 100.0.120-pre supprort the ...
0
votes
1
answer
23
views
JS command() API is not displaying more than 2 lines of messages for WPF solution with CEFSharp V84
enter image description here
<!DOCTYPE html>
<html>
<body>
<h1>HTML DOM Events</h1>
<h2>The onclick Event</h2>
<button onclick="myFunction()"&...
0
votes
0
answers
22
views
Load PDF in CefSharp without typical refresh
I have a winforms application in which the working is, I click on a file name and it is loaded
as a PDF in CefSharp, for each file click, I convert the file to PDF and then load that PDF
in CefSharp, ...
0
votes
2
answers
112
views
How to assign a variable to await which is inside void method in Cefsharp C#
This is what I have:
private async void Button_Click(object sender, EventArgs e)
{
string jsScript1 = "some java script code";
await Task.WhenAll(chrome.WaitForLoadAsync(), chrome....
-1
votes
1
answer
55
views
How to rewrite a piece of code without using string.Join and StringBuilder
This is the whole code
string script = @"(function()
{
var linksArray = new Array();
for (var i = 0; i < ...
0
votes
0
answers
70
views
C# How to make all pages fit into Panel without adding horizontal scroll bar in cefSharp browser
In WinForms my Panel size is 560x371. Some pages fit into this size without adding horizontal scroll bar but some pages do not fit and horizontal scroll bar adds. How to make all pages fit (without ...
2
votes
1
answer
46
views
Can't sort a list by datasets when actively trying to change dataset values
I'm writing an application in C# with Cefsharp. I'm utilizing C#, JavaScript and HTML/CSS for this project.
I recently posted a question about issues with sorting a list based on the innerHTML text of ...
0
votes
2
answers
62
views
C# How to continue running JavaScript code after a redirect or refresh by using CefSharp
I need programmatically make 3 actions on the website
filling search input
pressing search button
(after that, a request occurs and the page returns me the search result)
clicking on the first link
...