Namespace AxaFrance.WebEngine.Web
This namespace contains all necessary classes to test Web Based applications.
- To manage Selenium WebDriver, use BrowserFactory
- To manage Object Identification, use WebElementDescription
- To organize test objects into a Page repository, use PageModel
- To write an Action (the conecpt Keyword in Keyword-driven approche), use SharedActionWeb
- To write an Test Scneario with keyword-driven practice. use TestCaseWeb
Please check articles in tutorials to better understand how to use efficiently these tests.
Classes
BrowserFactory
BrowserHelper is a tooling class helps user to get the Selenium WebDriver object from the given context : platform, browserType.
ElementDescription
Describes how to identify an test object by its attributes, like Id, Name, XPath and any conbinations of them. WebEngine Framework can localize test object with multiple attributes. For web application testing, use the derived class WebElementDescription
FindsByAttribute
Inspired from original Selenium Page Objects, this attribute allows you to quickly create ElementDescription inside a PageModel.
HtmlAttribute
Describes an attribute of HTML tag. Use HtmlAttribute to describe a non-standand html attributes.
PageModel
Page Model is the repository to store all test objets which are been used by the test script. Page Model contains one or more ElementDescription, each Element Description indicates how to identify the
SharedActionWeb
SharedActionWeb implements privately the generic SharedActionBase interface and exposes new abstract methods The intention of add this level of abstraction is to make the WebEngine framework commun for other and no dependence.
Base class of all shared actions using Selenium. All shared actions must be derived from this class and implement DoAction, DoCheckpoint method.
In order to verify if all parameters are given when calling DoAction() and DoCheckpoint() methods, please specify RequiredParameters Property.
TestCaseWeb
The test case for Web Applications.
WebElementDescription
The Object Description how to identify the Element for Web Application.
Enums
How
Provides the lookup methods for the FindsBy attribute (for using in PageObjects)