Class BrowserLog
- Namespace
- CSF.Screenplay.Selenium.Questions
- Assembly
- CSF.Screenplay.Selenium.dll
Model which represents a single web browser log entry.
public sealed class BrowserLog
- Inheritance
-
BrowserLog
- Inherited Members
Properties
Level
Gets a string description of the 'severity' level at which this item was recorded.
public string Level { get; set; }
Property Value
Remarks
The levels and their precise meanings could potentially be implementation/WebDriver-specific. Generally speaking they are quite predictable, and correspond to strings which are equivalent to the members of LogLevel.
Message
The log message, as recorded in the console log.
public string Message { get; set; }
Property Value
Remarks
Note that log messages are retrieved from web browsers as pure strings, wheras they may be recorded as mixed strings, values and objects. When using techniques such as GetTheBrowserLogs(), it's important to ensure that the logs retrieved are readable and useful when converted to pure strings. This is a limitation which exists due to the cross-domain (web browser/Javascript and .NET) communication. There is no good one size fits all solution to interpreting arbitrary objects within browser logs, which convert them to useful strings.
Timestamp
Gets the timestamp at which the log message was recorded.
public DateTime Timestamp { get; set; }
Property Value
Methods
ToString()
public override string ToString()