splinter icon indicating copy to clipboard operation
splinter copied to clipboard

Use ABC for CookieManagerAPI

Open jsfehler opened this issue 1 year ago • 0 comments
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.

jsfehler avatar Feb 27 '24 13:02 jsfehler