splinter
splinter copied to clipboard
Use ABC for CookieManagerAPI
trafficstars
This PR:
- Adds the
__contains__method to the CookieManagerAPI interface - Uses the ABC module to enforce the Splinter API
Using ABC as a base class has some advantages for creating interfaces. The abstractmethod decorator forces subclasses to implement the decorated methods. Eventually, I'd like to have DriverAPI and ElementAPI use ABC as a base class.