Questions tagged [cefsharp.offscreen]
61 questions
1
vote
1 answer
Cefsharp Shutdown incorrect
Exception: Cef.Shutdown must be called on the same thread that Cef.Initialize was called - typically your UI thread. If you called Cef.Initialize on a Thread other than the UI thread then you will need to call Cef.Shutdown on the same thread.…

Elgin Maksim
- 31
- 1
- 10
1
vote
2 answers
In there a replacement for OnBeforeResourceLoad in IRequestHandler?
I'm trying to change the user agent dynamically using CefSharp. I have looked at the IRequestHandler class and I no longer see a method called OnBeforeResourceLoad.
I did, however, find a method called OnBeforeBrowse. However, all of the request…

Ginko
- 149
- 2
- 12
1
vote
0 answers
how to enable audio/sound of web media in cefsharp offscreen(c#)?
How do I enable audio/sound of web media in cefsharp offscreen?
When using cefsharp winform, it works fine. audis is running.
However, I must use it offscreen, so I have changed from winform to offscreen.
Thereafter, a failure audio running. Media…

JinoKiM
- 11
- 1
- 3
1
vote
0 answers
CefSharp setEmulatedMedia
I am trying to get my browser to create a screen like pdf. My code, based on MinimalExample.Offscreen works but generates the print image version, which is the default. I know this can be done because pupeteer does it if you are in a node.js…

user2250708
- 173
- 8
1
vote
0 answers
convert Cefsharp offscreen to winform
Is it possible to convert cefsharp.offscreen browser to cefsharp.winform ?
In my project I want to work with offscreen but sometime need to see what happened in browser so i need to show browser for small time ...
Also i know i can use from…

MrUnknow
- 359
- 3
- 18
1
vote
0 answers
CefSharp ScreenshotAsync does not always return the correct bitmap
I'm having trouble capturing every frame of an animation using a CefSharp bounded object. It appears the bitmap returned by Browser.ScreenshotAsync is not always correctly synchronized. This is my javascript render function which moves a WebGL…

Jonas
- 3,969
- 2
- 25
- 30
1
vote
0 answers
CefSharp with Proxy Authentication
I want to use CefSharp with proxy.
I have the following code in C#:-
var settings = new CefSettings();
settings.CachePath = "cache";
settings.CefCommandLineArgs.Add("proxy-server", ProxyAddress);
…

Puneet Pant
- 918
- 12
- 37
1
vote
0 answers
CefSharp.offscreen renders corectly but DOM access does not work
I am using Cefsharp.Offscreen project for some automation. I am in a case where I want to perform some DOM operations to select elements and trigger events on it.
Every single javascript call does not return my elements I want to select.
If I take…

Bhaal22
- 715
- 4
- 10
1
vote
1 answer
Asynchronous console program hangs on completion of task using CefSharp
In my quest to create the perfect string result = browser.Browse(url) method, I have created a simple class library to demonstrate CefSharp. The code for that is:
public class CefSharpHeadlessBrowser
{
public CefSharpHeadlessBrowser()
{
…

Robert Harvey
- 178,213
- 47
- 333
- 501
0
votes
0 answers
cefsharp DownloadUrlAsync skips Cookie
load url in browser control that require cookie and authentiacaion is ok
CefSharp.OffScreen.ChromiumWebBrowser browser = new CefSharp.OffScreen.ChromiumWebBrowser(Url, requestContext: reqContext);
but using download url
var ppp =await…

Moslem7026
- 3,290
- 6
- 40
- 51
0
votes
0 answers
System account login Cefsharp program crashes
We deployed a windows service in which cefsharp is used. Logging in with the system account for the service will crash, but there is no problem with the Administrator account.
The following is cefsharp debug…

redz
- 1
0
votes
0 answers
Trying to get a screenshot of the browser page using cefsharp but getting exceptions. how to take a screenshot?
In the file MainWindow.xaml.cs in the method TakeScreenShot i'm getting exception on the
line :
var executedScript = WebView.EvaluateScriptAsync(jsString).Result.Result;
System.Exception
HResult=0x80131500
Message=Unable to execute javascript at…

BenBen Shmil
- 437
- 6
- 16
0
votes
1 answer
How to fully wait browser load after a form submission by EvaluateScriptAsync in CefSharp.OffScreen
I am using the below method to submit a form:
var _Command = "document.querySelector(\"body > x > y > z\").shadowRoot.querySelector(\"d > form > ep-button\").shadowRoot.querySelector(\"button\").click()"
JavascriptResponse scriptResult = await…

Furkan Gözükara
- 22,964
- 77
- 205
- 342
0
votes
1 answer
Is there an example of using CefSharp.OffScreen.NETCore under Linux?
There is a package CefSharp.OffScreen.NETCore
There is an example of its use under Windows
In theory, the package CefSharp.OffScreen.NETCore should be different from CefSharp.OffScreen cross-platform, that is, the ability to work under Linux. But…

Mentor
- 3,058
- 1
- 22
- 27
0
votes
1 answer
How to set a value of Angular based JS select/input using CefSharp Offscreen on a third party webpage?
I am struggling with trying set some input on one of third party webpages that has an angular-related fields validation.
When I only set the value attribute by chrome browser or with cefsharp, in both cases, the value is not being set.
I have found…

mlawicki
- 1
- 1