Update default timeout for web driver
This commit is contained in:
parent
924630ce7f
commit
f0db503ff0
|
|
@ -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>();
|
||||
|
|
|
|||
Loading…
Reference in a new issue