cefsharp

DynamicObjects don't register with RegisterJsObject with Chromium / CefSharp

混江龙づ霸主 提交于 2019-12-25 16:04:33
问题 I created a dynamic object and try to register it with RegisterJsObject. However, the javascript code on the client side doesn't recongize the register js object and I can't call any of the functions that are par tof the dynamic object. Ex. C# code: dynamic obj = new ExpandoObject(); obj.FullName = new Action(() => { Console.WriteLine("FullName method called"); }); Cef.Initialize(new CefSettings()); ChromiumWebBrowser browser = new ChromiumWebBrowser(""); browser.RegisterJsObject("pesonObj",

WiX installer project: CefSharp.Core.dll could not be loaded, file not found

眉间皱痕 提交于 2019-12-24 21:55:02
问题 I am working on a windows application on c# visual studio, i have set up a WiX project for the installer and have added CefSharp, CefSharp.Core, CefSharp.Wpf references to it also. However, upon building, it throws an error that the extension '..\packages\CefSharp.Common.57.0.0\CefSharp\x86\CefSharp.Core.dll' could not be loaded because of the following reason: Could not load file or assembly 'CefSharp.Core.dll' or one of its dependencies. The specified module could not be found. InstallProj

Modifying remote JavaScripts as they load with CefSharp?

China☆狼群 提交于 2019-12-24 17:01:13
问题 I am building a custom browser as part of an interface to a remote website. Their GUI sucks so I'm doing some JavaScript hacks to make it look better. Currently, to make modifications to their UI I am using the following GreaseMonkey script (on Firefox): // ==UserScript== // @name winman-load // @namespace winman // @description stuff to do when winman.js loads // @include https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/ // @version 1 // @grant none // @run-at document-start // ==

CefSharp 3 WPF project didn't run in client machine

ε祈祈猫儿з 提交于 2019-12-24 13:42:04
问题 I need to run a CefSharp WPF project in a Client machine. The project works on development machine. But did not run in the Client machine. Here are some findings which I found: When I install the Visual Studio 2013 to client machine and run the application, it works perfectly. Application did not run when install .NetFramework 4.5 and Microsoft Visual C++ 2012 redistributable x86 package to client machine (As proposed by many developers in Stack Over Flow for same problem, I have installed

cefsharp how to check of all java script in page are completed?

柔情痞子 提交于 2019-12-24 11:28:30
问题 Iam using CefSharp browser and c# . i try login to page but when i click the submit button the page didnt refresh untill login sucess and if not the page load in server and get message password error How i can Check if all java script in page after i submit ? //Initialize ChromiumWebBrowser Chromium = new ChromiumWebBrowser("www.exapmle.com/login"); this.panel2.Controls.Add(chrom); Chromium.Show(); Chromium.Dock = DockStyle.Fill; click submit button var cvbar = chrom.EvaluateScriptAsync(

Invoke Click Cefsharp VB

吃可爱长大的小学妹 提交于 2019-12-24 07:53:24
问题 I would like to simulate a click or keypresses to a web browser element that is on my visual studio vb project. I have found ways to do it for the webbrowser object built-in to visual studio, but I am using the cefsharp browser, so weBrowser.Document.GetElementById('id').InvokeMember("Click") would not work, because cefsharp doesn't allow .Document . So my question, to reiterate, is, how would I use vb to simulate a click on my cefsharp webbrowser? Any help is appreciated, and have a nice day

How to print Silently in CefSharp

此生再无相见时 提交于 2019-12-24 07:07:46
问题 I have seen several post regarding this silent printing but no one give any answer can some tell me that is it possible to print directly to default printer without showing print dialog or option like kiosk??? 来源: https://stackoverflow.com/questions/43267466/how-to-print-silently-in-cefsharp

How to gather all cookies using CEFSharp?

狂风中的少年 提交于 2019-12-23 20:32:48
问题 In order to do a download using WebClient not Chrome, I intercepted a download URL. Then I had problems fetching cookies using a visitor . The pitfall I fell in was that I did not understand that the visitor is running asynchronously and therefore only in 30% of the cases got the correct result accessing the collected cookies too early. As I search quite long for a solution I would like to paste the one I found in the demo code here. 回答1: This is the code I found. The await key word is the

CefSharp.Winforms close tab by javascript

╄→尐↘猪︶ㄣ 提交于 2019-12-23 05:43:13
问题 I'm using CefSharp.WinForms.ChromiumWebBrowser v41.0.1 in my project. There are many tabs, each tab has a chromium webbrowser. I try to close one of these tabs by javascript function window.close(). But it also closes both all tabs and my program. What is the main reason? And is there any way to close only one tab by javascript? 回答1: I believe you'll find that CEF sends a WM_CLOSE message to the top level window as it's default behavior. One option is to upgrade to the 43.0.0-pre02 release,

CefSharp WebBrowser Example in WPF (transparency)

。_饼干妹妹 提交于 2019-12-23 04:22:26
问题 I'm working with WPF and c# (using Visual Studio 2013) and I want to develop an application with a transparent background and a webbrowser. I understand that this is an issue of the default webbrowser... but I want to find another solution. I found other webbrowser components like CefSharp that is based on chromium. I'd like to know if is possible using a transparent background using the CefSharp browser and I'd like that someone explain me step by step how to implement a very simple