Embeded Cefsharp WPF Automation

Having problems with building or using the CefSharp .NET binding? Ask your CEF-related questions here. Please ask general usage questions on StackOverflow.

Moderator: amaitland

Embeded Cefsharp WPF Automation

Postby Zomi1one » Mon Apr 12, 2021 6:04 am

What is the best way to automate an embedded cefsharp. I would like to integrate selenium or an alternative framework. I think software like Jarvee uses cefsharp to automate social media in a customer-friendly way. I am looking for a good way to do it but everything I find is outdated or simply not for the embedded nuget version. Would really appreciate any advice!
Zomi1one
Newbie
 
Posts: 3
Joined: Sun Apr 11, 2021 4:40 am

Re: Embeded Cefsharp WPF Automation

Postby amaitland » Mon Apr 12, 2021 4:39 pm

Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1290
Joined: Wed Jan 14, 2015 2:35 am

Re: Embeded Cefsharp WPF Automation

Postby Zomi1one » Tue Apr 13, 2021 10:31 am

Thanks for your answer. I was able to use your advice and implement it with remote debugging. The problem is, that I need different browsers doing different tasks. Is there any way to assign different remote debugging addresses for each instance? I was not able to find a workaround.
Zomi1one
Newbie
 
Posts: 3
Joined: Sun Apr 11, 2021 4:40 am

Re: Embeded Cefsharp WPF Automation

Postby amaitland » Thu Apr 15, 2021 12:42 am

If you mean running multiple instances of your application then rather than hard coding the RemoteDebuggingPort you can use the command line arg as described in
http://cefsharp.github.io/api/89.0.x/ht ... ngPort.htm

If you are specifying a CachePath then you'll need a unique path per process.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1290
Joined: Wed Jan 14, 2015 2:35 am


Return to CefSharp Forum

Who is online

Users browsing this forum: No registered users and 22 guests