jonhoo / fantoccini

A high-level API for programmatically interacting with web pages through WebDriver.
Apache License 2.0
1.68k stars 125 forks source link

Errors related to the request to open cookies #270

Closed ChengCY-2254 closed 2 months ago

ChengCY-2254 commented 3 months ago

I don't speak English, so this issus is a machine translation, which may be a little wrong. Please forgive me.

I am trying to encode and decode cookies, but the relevant API will return cookie::ParseError, which makes it impossible to accurately define it in my custom error. I don't want to add a duplicate crate for an Error, so I request an alias or something to open up the cookie::ParseError error.

jonhoo commented 2 months ago

You should generally be defining your own error type, not trying to re-use fantoccini's error type for your own errors :)