IntelliTect / TestTools

A collection of tools for aiding in test automation
MIT License
10 stars 7 forks source link

Should ElementHandler be a wrapper like Browser is to IWebDriver? #52

Closed PandaMagnus closed 4 years ago

PandaMagnus commented 5 years ago

Long story short, Browser wraps IWebDriver to handle things that end up being boiler plate implementations (e.g. polling for an alert, polling for a window, etc.) Should ElementHandler eventually be turned into that?

We tried implementing our own IWebElement to... mixed results. So I don't think our own implementation is the right answer. But wrapping the returned IWebElement might be the way to go. There could be concerns of dependencies since we'd have to know the driver that found the IWebElement in order to do WebDriverWaits. Investigate once some better examples get created and can be used for validation.

PandaMagnus commented 4 years ago

After working with Sean, I think we have a good solution for this. Leave as a separate class so people can optionally implement in a base class where a test case calls a wrapper method for simple syntax OR hand around to tests, depending on their preference.

Closing.