aquality-selenium-dotnet icon indicating copy to clipboard operation
aquality-selenium-dotnet copied to clipboard

The driver is crashing silently and new browser instance created while using browser.DevTools.EnablePerfomanceMonitoring()

Open DmitryBogatko opened this issue 2 years ago • 0 comments
trafficstars

I have following code:

 var browser =  AqualityServices.Browser;
 browser.GoTo("some-url");

await browser.DevTools.EnablePerfomanceMonitoring();
    
var submitBtn = AqualityServices.Get<IElementFactory>().GetButton(By.Id("some-id"), "Telecash payment submit");

// driver will be crashed on the next line
submitBtn.ClickAndWait();

On the line submitBtn.ClickAndWait(); the driver is crashing and it looks like the second attempt is trying to re-create driver. It would be much nicer to have an exception in such cases. Could you please take a look?

DmitryBogatko avatar Dec 19 '22 17:12 DmitryBogatko