I'm working on an automation project in C# and it has 2 wrappers:
BrowsersAutomation. The first has a dependency on
UIAutomation.dlls (access to the MS desktop elements) and the latter on Selenium. Their role is understood I hope ;)
Now, There are user actions on the browsers that require a dependency on
DesktopAutomation for that matter), since Selenium gives you access to the DOM and not the extensions buttons in Chrome for example.
So my question is, what would be the correct way / best practice, software construction wise:
- Adding a dependency to
DesktopAutomationwhich has the advantage of a working project that has existing methods I can use.
- Adding a direct dependency to
UIAutomation.dlls which makes this project more generic. e.g. using it in other projects won't require another dependency.
Or, perhaps, some other configuration I haven't thought of...?