cefsharp

Simple CefSharp application is missing files at runtime

妖精的绣舞 提交于 2019-12-11 12:08:52
问题 This is probably a very simple question. I copied the example CefSharp MinimalExample.WinForms project to a new directory and renamed to WinProxy. It builds ok. When I run it I get; An unhandled exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll Additional information: Could not load file or assembly 'CefSharp.Core.dll' or one of its dependencies. The specified module could not be found. Comparing with the example directory, I am missing a number of files listed here

WinForm TabControl tab page contents does not update until the new tab is shown

风流意气都作罢 提交于 2019-12-11 11:48:53
问题 I have a tabcontrol which allows the creation of new tabs. Each new tab has a web browser control CEFSharp on it. When the new tab is created it is not shown the previously opened tab is shown; which is what we want. However, the browser on the newly created tab is only added to the tab page, and only partially runs... it does not go to the loading state until the tab page is shown. Here is the Tabpage creation code: private void AddNewBrowser() { Log("Adding New Tab and Browser"); UiBrowser

Asynchronous console program hangs on completion of task using CefSharp

谁说胖子不能爱 提交于 2019-12-11 10:47:56
问题 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() { Cef.Initialize(new CefSettings { CachePath = "cache" }, false, true); } public string Browse(string url) { Task<string> result; var browserSettings = new BrowserSettings { WindowlessFrameRate = 1 }; using (var browser = new ChromiumWebBrowser(url,

Why element.click() not working in Cefsharp?

China☆狼群 提交于 2019-12-11 08:49:56
问题 I try to execute below script in Cefsharp to click on a DIV element, and not working. private static string ClickUnreads = @"(function() { let chatsEl = document.querySelectorAll('.infinite-list-item'); for (let x = 0; x < chatsEl.length; x++) { let unread = chatsEl[x].getElementsByClassName('unread'); if (unread.length > 0) { chatsEl[x].click(); } } })();"; public void ClickUnreads() { WebBrowser.ExecuteScriptAsync(ClickUnreads); } I found similar threads here that have problem similar to

CefSharp doesn't run in WIndows 7

有些话、适合烂在心里 提交于 2019-12-11 08:32:32
问题 I have been struggle to run my C# winforms CefSharp on Windows 7. Everytime that I try to run it I have a error and the app doesn't open. I tryed to run this example on client: https://github.com/cefsharp/CefSharp.MinimalExample Here some things of what I understood so far: Windows 7 with visual studio 2013 the program works perfectly. It doesn't run in clients with Windows 7 with only .NetFramework Installed. The page above says that I need all theses files in app folder to run it. I have

How to configure selenium for CEF/Winforms applications (exe)

时光怂恿深爱的人放手 提交于 2019-12-11 07:58:26
问题 Main Question: How does one configure selenium for CEFsharp applications in C#? If anyone is having issues with configuring selenium to CEFsharp applications please take a look at this post. I had a tough time and scoured the internet to make this happen and I want to share this information with others. My Environment: VS 2017 C# backend/middleware Angular frontend CEF to encapsulate application Application is exe 回答1: Here is the solution: Make sure your application uses RemoteDebugging (in

Get finished download in CefSharp

怎甘沉沦 提交于 2019-12-11 05:27:55
问题 I try do make a small downloader-tool for a website with CefSharp. For downloading files, I use the pretty well example DownloadHandler from CefSharp. Now, I want to do some things after the download is finished. I know the " downloadItem " has a " IsComplete " value. But if I put something like this in the " OnDownloadUpdated " method, stuff will never be executed if (downloadItem.IsComplete) { //do stuff } So, my question is, where I have to check if my downloaded item is completed? EDIT:

Embed Cefsharp browser in Custom Task Pane for Excel

落爺英雄遲暮 提交于 2019-12-11 04:44:45
问题 As the headline suggests, what I'm trying to do is to embed a Cefsharp Chromium browser in a VSTO Custom Task Pane (CTP) for Excel. I have tested the Cefsharp browser in a standard Windows form and it works beautifully. And I'm using this code for the CTP, and that also works without problems. The problem arise when I try to combine them. Then I get an 'System.IO.FileNotFoundException' error stating that 'CefSharp.Core.DLL' could not be read. My CTP startup-function loos like this: Private

Could not load file or assembly 'CefSharp.Wpf for both x64 and x86; only one works

▼魔方 西西 提交于 2019-12-10 22:27:45
问题 When I run I get: Could not load file or assembly 'CefSharp.Wpf, Version=41.0.0.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138' or one of its dependencies. An attempt was made to load a program with an incorrect format. This means the problem is due to the dlls not being correct bitness. In version 41.0.0, the nuget package adds dll references to the x86 version which point to the correct path (an x86 folder). There are also another copy of dlls that point to an empty path in the

How to make JAWS screen reader recognize and read content of cefsharp ChromiumWebBrowser control?

荒凉一梦 提交于 2019-12-10 19:17:22
问题 I have winforms application that contains cefsharp ChromiumWebBrowser component. I want JAWS to read it's content. Now JAWS only read title of main window. Is there any way to achieve this? I tried "force-renderer-accessibility" flag but it didn't help me. Here is the code i tried: var settings = new CefSettings() { CefCommandLineArgs = { new KeyValuePair<string, string>("force-renderer-accessibility", "true") } }; Cef.Initialize(settings, performDependencyCheck: false, browserProcessHandler: