You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The SubscribeToLoadEventFiredEvent method is supposed to register a callback function for when the page has loaded. The page does load, but the event callback function is never called. I cannot find any information about what lies beneath this method so I'm stuck. Is there any understandable documentation about that remote access protocol available?
The text was updated successfully, but these errors were encountered:
An example of subscribing to events is located in the unit tests, for instance:
using(varsession=newChromeSession(m_currentChromeSessionInfo.WebSocketDebuggerUrl)){awaitsession.Page.Enable();session.Page.SubscribeToLoadEventFiredEvent(async(e)=>{varscreenshot=awaitsession.Page.CaptureScreenshot(newPage.CaptureScreenshotCommand());if(!string.IsNullOrWhiteSpace(screenshot.Data)){File.WriteAllBytes(fileName,Convert.FromBase64String(screenshot.Data));m_testContext.WriteLine($"saved to {fileName}");s.Release();}});varnavigateResult=awaitsession.Page.Navigate(newPage.NavigateCommand{Url="https://www.google.com"});awaits.WaitAsync();Assert.IsTrue(File.Exists(fileName));}
The associated events must be enabled via Page.Enable(). HTH!
The
SubscribeToLoadEventFiredEvent
method is supposed to register a callback function for when the page has loaded. The page does load, but the event callback function is never called. I cannot find any information about what lies beneath this method so I'm stuck. Is there any understandable documentation about that remote access protocol available?The text was updated successfully, but these errors were encountered: