Skip to content

Instantly share code, notes, and snippets.

@seleniumgists
Created November 6, 2020 15:38
Show Gist options
  • Save seleniumgists/00be51dd135d1a08a26874673cd4dc02 to your computer and use it in GitHub Desktop.
Save seleniumgists/00be51dd135d1a08a26874673cd4dc02 to your computer and use it in GitHub Desktop.
generated automatically from #selenium on seleniumhq slack
if ((this as ISupportsLogs) != null)
{
// Only add the legacy log commands if the driver supports
// retrieving the logs via the extension end points.
this.CommandExecutor.CommandInfoRepository.TryAddCommand(DriverCommand.GetAvailableLogTypes, new CommandInfo(CommandInfo.GetCommand, "/session/{sessionId}/se/log/types"));
this.CommandExecutor.CommandInfoRepository.TryAddCommand(DriverCommand.GetLog, new CommandInfo(CommandInfo.PostCommand, "/session/{sessionId}/se/log"));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment