Update webdriver settings to support defaultnavigationtimeout
This commit is contained in:
parent
499632d7e8
commit
93ae5327cf
|
|
@ -6,6 +6,7 @@ public class WebBrowsingSettings
|
|||
public bool Headless { get; set; }
|
||||
// Default timeout in milliseconds
|
||||
public float DefaultTimeout { get; set; } = 30000;
|
||||
public float DefaultNavigationTimeout { get; set; } = 30000;
|
||||
public bool IsEnableScreenshot { get; set; }
|
||||
// Default wait time in seconds after page is opened
|
||||
public int DefaultWaitTime { get; set; } = 5;
|
||||
|
|
|
|||
|
|
@ -85,6 +85,7 @@ public class PlaywrightInstance : IDisposable
|
|||
]
|
||||
});
|
||||
_contexts[ctxId].SetDefaultTimeout(_webDriver.DefaultTimeout);
|
||||
_contexts[ctxId].SetDefaultNavigationTimeout(_webDriver.DefaultNavigationTimeout);
|
||||
}
|
||||
|
||||
_pages[ctxId] = new List<IPage>();
|
||||
|
|
|
|||
Loading…
Reference in a new issue