Update default timeout for web driver

This commit is contained in:
Visagan Guruparan 2025-03-21 15:23:37 -05:00
parent 924630ce7f
commit f0db503ff0

View file

@ -45,6 +45,7 @@ public class PlaywrightInstance : IDisposable
public async Task<IBrowserContext> InitContext(string ctxId, BrowserActionArgs args)
{
var _webDriver = _services.GetRequiredService<WebBrowsingSettings>();
if (_contexts.ContainsKey(ctxId))
return _contexts[ctxId];
@ -83,6 +84,7 @@ public class PlaywrightInstance : IDisposable
// "--start-maximized"
]
});
_contexts[ctxId].SetDefaultTimeout(_webDriver.DefaultTimeout);
}
_pages[ctxId] = new List<IPage>();