Class WebElementDecorator
- java.lang.Object
-
- de.telekom.test.bddwebapp.frontend.element.decorator.WebElementDecorator
-
- All Implemented Interfaces:
org.openqa.selenium.support.pagefactory.FieldDecorator
public class WebElementDecorator extends Object implements org.openqa.selenium.support.pagefactory.FieldDecorator
Provides the extended WebElement via the WebElementHandler. The WebElementEnhanced is integrated into the page objects using the @FindBy Annotation. The use of WebElementEnhanced is not mandatory.- Author:
- Daniel Keiss <daniel.keiss@telekom.de>
Copyright (c) 2019 Daniel Keiss, Deutsche Telekom AG This file is distributed under the conditions of the Apache License, Version 2.0. For details see the file license on the toplevel.
-
-
Constructor Summary
Constructors Constructor Description WebElementDecorator(@NonNull org.openqa.selenium.WebDriver webDriver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectdecorate(ClassLoader loader, Field field)protected ObjectgetEnhancedObject(Field field, org.openqa.selenium.support.pagefactory.DefaultElementLocatorFactory defaultElementLocatorFactory)protected booleanisListWithWebElementEnhanced(Field field)protected booleanisWebElementEnhanced(Field field)
-
-
-
Method Detail
-
decorate
public Object decorate(ClassLoader loader, Field field)
- Specified by:
decoratein interfaceorg.openqa.selenium.support.pagefactory.FieldDecorator
-
isWebElementEnhanced
protected boolean isWebElementEnhanced(Field field)
-
isListWithWebElementEnhanced
protected boolean isListWithWebElementEnhanced(Field field)
-
-