Page 1 of 1

Embeded Cefsharp WPF Automation

PostPosted: Mon Apr 12, 2021 6:04 am
by Zomi1one
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!

Re: Embeded Cefsharp WPF Automation

PostPosted: Mon Apr 12, 2021 4:39 pm
by amaitland

Re: Embeded Cefsharp WPF Automation

PostPosted: Tue Apr 13, 2021 10:31 am
by Zomi1one
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.

Re: Embeded Cefsharp WPF Automation

PostPosted: Thu Apr 15, 2021 12:42 am
by amaitland
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.