Questions tagged [cefsharp.offscreen]

61 questions
10
votes
2 answers

Using CefSharp.Offscreen to retrieve a web page that requires Javascript to render

I have what is hopefully a simple task, but it's going to take someone that's versed in CefSharp to solve it. I have an url that I want to retrieve the HTML from. The problem is this particular url doesn't actually distribute the page on a GET. …
Robert Harvey
  • 178,213
  • 47
  • 333
  • 501
4
votes
1 answer

Unable to deploy CefSharp - CefSharp.Core.Runtime.dll

I created a new console project and used NuGet to add CefSharp.Common and CefSharp.OffScreen. I added the following code: static void Main(string[] args) { try { ChromiumWebBrowser Chromium = new…
jonyfries
  • 772
  • 6
  • 20
3
votes
1 answer

Chromium in UWP Apps

Hi all, I know this question(Chromium working on UWP) has been asked before(2015/2016), wanted to see if there is an update on this I am trying to use the CEF3 build in UWP app and getting the following error in CefInitialize while running the…
Prarthana
  • 31
  • 4
3
votes
0 answers

Cefsharp OffScreen set RequestContext

I want to define a new RequestContext when using CefSharp OffScreen to prevent multiple browser instances sharing the same information (e.g. cookies). I can simply do that with CefSharp WinForms like that: RequestContextSettings…
3
votes
2 answers

Full page screenshot with Cefsharp in C#

I have downloaded example of Minimalexample.Offscreen. This is the code I'm using for screenshot but I'm not getting the full page. The image is cropped (only visible page screenshot is taken). // c# code var scriptTask =…
skhurams
  • 2,133
  • 7
  • 45
  • 82
2
votes
0 answers

CefSharp Core Runtime dll incorrect format

I am getting System.IO.FileNotFoundException: 'Could not load file or assembly 'CefSharp.Core.Runtime, Version=89.0.170.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138'. The system cannot find the file specified.' the file is there and in the…
PurpleSmurph
  • 2,055
  • 3
  • 32
  • 52
2
votes
2 answers

CefSharp.OffScreen.NETCore with Azure Function

I am trying to create an Azure function, which takes an url and then returns a screenshot of the page. I have added the package CefSharp.OffScreen.NETCore to the project and the code from CefSharp.MinimalExample for generating a screenshot. Running…
stefan
  • 195
  • 1
  • 13
2
votes
1 answer

Is there an alternative to headless Chrome to use Extensions?

I’m trying to make a selenium automation that needs to run multiple Chrome windows at the same time. I attempted using Chrome in headless mode, but since it doesn’t support installing extensions, I need an alternative. So my question is: is there…
2
votes
1 answer

CefSharp WpfControl and rendering to image

We want to show a webpage in a chromium based browser within a wpf application. The website that is displayed within the browser should also be shown on another screen but without interaction. I want to combine the cefsharp wpf browser control and…
Simon
  • 87
  • 5
2
votes
0 answers

window.screen.colorDepth property for CefSharp Offscreen

So, I would like to create an offscreen CefSharp scraper that would be difficult to detect with fingerprints. However, when I use it to open https://amiunique.org/fp and click "View more details", my screen resolution is displayed as "1366x768x0",…
2
votes
1 answer

ChromiumWebBrowser Offscreen does not work with MsTest/NUnit

I'm trying to use ChromiumWebBrowser from MsTest unit test framework in OffScreen mode to provide some testing... But Chromium constructor crashes all the time and I can't do anything with it. I've alreade left comments in similar threads on…
2
votes
2 answers

CefSharp offscreen - wait for page for render

I have a problem as below. I use the CefSharp offscreen for webpage automation as follows (I open only one and the same page): 1. Open page and wait untill it renders*. 2. With EvaluateScriptAsync I put on value to input form and then with the same…
Mikisz
  • 404
  • 5
  • 20
1
vote
1 answer

CefSharp doesn't submit the form

browserContainer.EvaluateScriptAsync("document.querySelector('input[id=auth-modal-email]').value='****@gmail.com';"); browserContainer.EvaluateScriptAsync("document.querySelector('input[id=auth-modal-current-password]').value='*****';"); browserCont…
1
vote
2 answers

CefSharp.offscreen in LinqPad

LinqPad is my goto REPL and there isn't much I throw at it that it cant handle. However I cannot for the life of me get CefSharp (specifically OffScreen) to run. I'm constantly met with either of the below errors Could not load file or assembly…
OrdinaryOrange
  • 2,420
  • 1
  • 16
  • 25
1
vote
0 answers

CefSharp initialization is not called

I have now run ten copies of the program. four were frozen. please explain why Cef initialization is not called private static ChromiumWebBrowser _browser; public static void InitializeBrowser() { …
Elgin Maksim
  • 31
  • 1
  • 10
1
2 3 4 5