sbabcoc / Selenium-Foundation

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

Add a feature that will automatically select between multiple versions of a component #191

Open sbabcoc opened 2 years ago

sbabcoc commented 2 years ago

In production environments, it's common to have multiple presentations of any given feature operating within a single application. For example, different pages within a single application may use different incarnations of a common navigation menu component, depending on whether each page has been updated to use the latest version or not. To accommodate this reality, add an annotation that associates the base class with a context-matching resolver that returns the component subclass that corresponds to the component version presented by the system under test.