asWebContentsSession

Adapts this ChildSession to a WebContentsSession. If the attached target is not of a compatible type, this function throws an exception.