microsoft / EasyRepro

Automated UI testing API for Dynamics 365
MIT License
513 stars 285 forks source link

[HOW-TO] Instantiate chromedriver with a service for debugging? #1355

Open bugboogie666 opened 1 year ago

bugboogie666 commented 1 year ago

Hi,

is there any way how can I initialize a driver with debugging service:

a standard solution is:

var service = ChromeDriverService.CreateDefaultService();

service.LogPath = "D:\\chromedriver.log";

service.EnableVerboseLogging = true;

driver = new ChromeDriver(service);

but when I initiate driver via easy repro, I am using something like this

            var settings = new TestSettings();
            var client = new WebClient(settings.InitializeSettings());
            XrmApp = new XrmApp(client);
            WebDriver = client?.Browser.Driver;;

Is there any way how to instantiate with the service?

Shakevg commented 1 year ago

bugboogie666 It is not possible for now, need to extend the Framework for that