sbabcoc / Selenium-Foundation

Selenium Foundation is an automation framework designed to extend and enhance the capabilities provided by Selenium (WebDriver).
Apache License 2.0
60 stars 16 forks source link

Add a feature that allows the context element of a page component to be "optional" #192

Open sbabcoc opened 2 years ago

sbabcoc commented 2 years ago

It pretty common for components to exist under certain conditions, but to be absent in others. To model this sort of "optional" component, we should allow for the specification of an optional element as context. Currently, I think it's possible to specify an optional context element, but the base component implementation lack methods to realize "optional" component behavior.