selenimum/errors

Procs

proc checkHttpResponse(resp: Response) {...}{.raises: [ValueError, OverflowError, Defect,
    IOError, OSError, JsonParsingError, Exception, SeleniumServerException,
    SeleniumNotFoundException], tags: [ReadIOEffect, WriteIOEffect].}
Check Selenium API response.
  • Raise SeleniumNotFoundException if HTTP 404 response without "unknown command".
  • Raise SeleniumServerException if other HTTP error(4xx, 5xx).
  Source Edit