Questions tagged [cefsharp]
.NET (WPF and Windows Forms) bindings for the Chromium Embedded Framework
1,634
questions
0
votes
0
answers
14
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
16
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
votes
0
answers
15
views
Inserting javacript foreach tab in chromium using c# tabcontrol
Hi im trying to inject a javascript foreach tabpage in chromium and select which tabpage gets the result from script
var script = "document.querySelector(\"[id='input1']\").getAttribute(...
1
vote
0
answers
14
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 ...
-1
votes
0
answers
8
views
CefSharp browser integration with avaya contact center
I'm trying to integrate a browser with avaya contact center and I'm facing the same problem. When contact center launches my browser. When working in this browser, when creating new tabs, I get a js ...
0
votes
0
answers
29
views
Why Im getting null when i use JavaScript console.log in cefSharp? [closed]
The command "console.log()" of JavaScript is one of the frequently used command.
And when i use simple "console.log('Hello')" i will get null in cefSharp...
Okay, maybe the reason ...
0
votes
1
answer
33
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
33
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('...
1
vote
0
answers
30
views
cefSharp How to return value from JavaScript console.log(linksArray)
How to return value from this line console.log(linksArray); to cefSharp
As i know cefSharp does not return value from "console.log" is not it?
Is there any way to return value from console....
0
votes
0
answers
37
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:
...
4
votes
0
answers
101
views
cefSharp How to realize Action#2 without using delays
I want to do three actions on the web site by using cefSharp.
Action#1 is clicking on "Download" link.
Action#2 is waiting for loading links in the same document.
Action#3 is getting the ...
-1
votes
1
answer
44
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
35
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
51
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
38
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
35
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
29
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
15
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
27
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
36
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
21
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
16
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
100
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
50
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 < ...
-1
votes
0
answers
57
views
CEF Sharp library is taking 30-40 seconds to load angular application for the very first time
We are using Cef sharp(98.1.210) to load angular application in WPF project. For the first time after system restart, it is taking 30-40 seconds to load the angular application. Once it is loaded then ...
0
votes
0
answers
51
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
44
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
55
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
...
0
votes
0
answers
20
views
CefSharp on windows nanoserver container
Currently getting error
The system cannot find the file specified. File name: CefSharp.Core.Runtime Version=99.2.120.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138
I suspect it because VC++ ...
0
votes
0
answers
35
views
Performance degradation after updating from CefSharp 92 to CefSharp 94+
Upgrade from 92.0.260 to 94.4.110 (I've also tried as recent as 99 with similar behavior)
WinForms
x86
Our CefSharp based application is significantly more laggy after this update. This is most ...
0
votes
1
answer
39
views
Proxy with CefSharp
how can I set up a proxy that has username and password in CefSharp browser in visual basic?
I tried with this code but doesn't work:
Dim proxy = "IP:PORT@USERNAME:PASSWORD"
Dim settings As ...
-2
votes
2
answers
97
views
c# Cefsharp how to make correct sequence of JavaScript actions on the web site
These sequences of actions work with Thread.Sleep, somewhere in 1 second, somewhere in 2 seconds. I think using Thread.Sleep/Task.Delay is not good. Because it can be performed differently on ...
1
vote
0
answers
48
views
WPF wrapper for custom CEF nuget package
I recompiled CEF with some features enabled and also successfully compiled it as Nuget package, as you can see below now I can browse my custom compiled Cef_Binaries (x64 only - target platform).
But ...
0
votes
1
answer
23
views
ChromiumWebBrowser opens blank form why?
I created a project and added CefSharp.WinForms from nuget in it.
I gave an address and ChromiumWebBrowser opened it. While I was navigating around this address, I clicked a download link. No problem, ...
0
votes
0
answers
32
views
how to use proxy in cefSharp ver 100? when i use proxy i see blank page
I use CefSharp version 100 in WinForms.
This is my code snippet
public ChromiumWebBrowser chrome;
public CefSettings settings;
string main_site = "https://whatismyipaddress.com";
public ...
0
votes
0
answers
17
views
Cefsharp - OnDevToolsMessage return false or true?
Please explain the meaning of the return value of the OnDevToolsMessage() function: http://cefsharp.github.io/api/99.2.x/html/M_CefSharp_Callback_IDevToolsMessageObserver_OnDevToolsMessage.htm
In the ...
0
votes
0
answers
52
views
Using VB FW 4.7.2 Win Forms App with cefSharp 100.0.140.0, why error from executable: Could not load file or assembly 'CefSharp.Core.Runtime.dll'?
I can not seem to recognize how to rectify 'Could not load file or assembly 'CefSharp.Core.Runtime.dll' or one of it's dependencies. The specified module could not be found.'
Program works in both ...
0
votes
0
answers
76
views
Cefsharp + Chrome DevTools Protocol - How to use parameters
I am trying to use Chrome DevTools Protocol in conjunction with Cefsharp.
I found a description of Chrome DevTools Protocol:https://chromedevtools.github.io/devtools-protocol/
For example, I wanted to ...
0
votes
0
answers
20
views
CEfsharp - OnDevToolsMessage
The Description for the OnDevToolsMessage function says: https://cefsharp.github.io/api/94.4.x/html/M_CefSharp_Callback_IDevToolsMessageObserver_OnDevToolsMessage.htm
Method that will be called on ...
0
votes
0
answers
157
views
CefSharp - Published: Could not load file or assembly 'CefSharp.Core.Runtime.dll'
Using CefSharp.WinForms (NuGet Download) Version: 99.2.140
I've updated .csproj file to include
<CefSharpAnyCpuSupport>true</CefSharpAnyCpuSupport>
And updated the App.config file to ...
1
vote
2
answers
96
views
C# CefSharp DevTool's close button does not work
I added the following code to inspect the element in the CefSharp browser using Devtools, but after opening Devtools, the close button does not work
public class DevToolsMenuHandler : ...
0
votes
1
answer
52
views
C# CefSharp RenderProcessMessageHandler example
I am a novice at C# and learning Cefsharp + javascript. I'm attempting to wait until the page has finished loading with Cefsharp to execute my code. I found code snippet below, and added that to a new ...
0
votes
0
answers
28
views
How to configure devtools to default to Chinese
The following has been configured
settings.PersistSessionCookies = true;
settings.Locale = "zh-CN";
settings.AcceptLanguageList = "zh-CN";
How can I configure the default ...
0
votes
0
answers
126
views
Issues with Cefsharp and foreach loop
I'm new to working with async and I'm trying to build a Cefsharp application that collects data from an external API, stores it in local variables and then exports these through JavaScript to HTML. It'...
0
votes
0
answers
16
views
CefShape get/set cookies
I created an embedded CefSharp web browser in winfroms for testing and I am trying to visit a website delete it's cookies and inject my own to the load the page with the new injected cookies but could'...
0
votes
0
answers
15
views
Cefsharp settings to disable CSP in WinForms C# application
I have a WinForms application using Cefsharp to launch web pages. Is there any way to disable CSP in Cefsharp settings ?
0
votes
0
answers
79
views
Unable to disable GPU in CefSharp settings
CefSharp v99.2.120
I am getting the following error in my CefSharp application:
ERROR::gpu_process_host.cc (967) GPU process exited unexpetedly: exit_code=532462766 WARNING:gpu_process_host.cc(1273) ...
0
votes
1
answer
158
views
Is CefSharp supported in Mac OS and Linux
cefsharp page doesn't mention support for operating systems https://github.com/cefsharp/CefSharp/wiki/General-Usage . I know it is supported in Windows. What about Linux and MAC OS? Could anyone ...
0
votes
0
answers
61
views
Auto login to itslearning using C#
I want to auto login to a website (itslearning.com) and then display it in my Windows Forms Application with CefSharp.
It would be easy to do this with itslearning eLogin (https://developer....
0
votes
0
answers
44
views
How to attribuate geolocation permission in cefsharp
I have recently created project based on cefsharp and I want to give permission for geolocation to a site, but idk why my code doesn't work. I got this error :
CefSharp.DevTools....