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
I am listening into the JavaScriptConsoleApiCalledEvents using the following code:
var webDriver = new RemoteWebDriver(
remoteAddress: new Uri("http://localhost:4444/wd/hub"),
capabilities: (new ChromeOptions()).ToCapabilities(),
commandTimeout: TimeSpan.FromSeconds(300));
var jsEngine = new JavaScriptEngine(webDriver);
var consoleLogs= new List<JavaScriptConsoleApiCalledEventArgs>();
jsEngine.JavaScriptConsoleApiCalled += (_, e) => consoleLogs.Add(e);
await jsEngine.StartEventMonitoring();
The JavaScriptConsoleApiCalledEventArgs instances that are added to the list have MessageTimeStamp that is correct except for the year - it gives this as 2033 rather than 2024. The MessageContent property has the correct date and time it it, for example:
Tue Mar 05 2024 14:14:20 GMT+0000 (Coordinated Universal Time): 1709648060938 {"id":19021,"severity":1,"pb":{"build":"20240301.545","appType":"edgeChromium","pcsVersion":"20240228.4_master","pcsEnv":"prod-ssrntp","buildAlias":"latest","shouldSupressWarnings":false,"shouldSampleErrorsForTreatement1":false,"shouldSampleErrorsForTreatement2":false,"networkStatus":"connected","w":1},"message":"Edge Next page refresh due to implicit market cookie restored. market: en-US||gb|en-gb|en-gb|en||RefA=479D0A23C97646BDB9205FAABF02A900.RefC=2024-03-05T10:38:31Z"}
I have confirmed that my system time has the correct date time.
@MJB222398, thank you for creating this issue. We will troubleshoot it as soon as we can.
Info for maintainers
Triage this issue by using labels.
If information is missing, add a helpful comment and then I-issue-template label.
If the issue is a question, add the I-question label.
If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable G-* label, and it will provide the correct link and auto-close the
issue.
After troubleshooting the issue, please add the R-awaiting answer label.
What happened?
I am listening into the JavaScriptConsoleApiCalledEvents using the following code:
The JavaScriptConsoleApiCalledEventArgs instances that are added to the list have MessageTimeStamp that is correct except for the year - it gives this as 2033 rather than 2024. The
MessageContent
property has the correct date and time it it, for example:I have confirmed that my system time has the correct date time.
How can we reproduce the issue?
Relevant log output
Operating System
Windows 10
Selenium version
4.18.1
What are the browser(s) and version(s) where you see this issue?
Chrome 121.0.6167.184
What are the browser driver(s) and version(s) where you see this issue?
Chrome Driver 121.0.6167.184
Are you using Selenium Grid?
4.18.0-20240220
The text was updated successfully, but these errors were encountered: