Redirect unknown attributes Redirect unknown attributes selenium selenium

Redirect unknown attributes


I created a custom Webdriver once to add features to selenium Chrome Webdriver and I did that by subclassing selenium Chrome Webdriver. This way you inherit all the webdriver methods without a getattr

from selenium.webdriver import Chromeclass MyChrome(Chrome):    def __init__(self, *args, **kwargs):        super().__init__(*args, **kwargs) # add all your custom features 

It doesn't provide answer to your question but something you can leverage