kgress / scaffold

A Java based Selenium WebDriver abstraction
MIT License
4 stars 7 forks source link

Add findElement(String cssSelector) to BaseWebElement #47

Closed kgress closed 3 years ago

kgress commented 4 years ago

Summary

Currently, AbstractWebElement has a constructor with a parameter of String cssSelector. This is helpful when creating new properties with cssSelectors as it cuts down on the amount of code required to instantiate these variables. https://github.com/kgress/scaffold/blob/master/framework/src/main/java/io/github/kgress/scaffold/webelements/AbstractWebElement.java#L45

However, we do not have this functionality on the BaseWebElement. Depending on the situation, if a user needs to do a findElement() or findElements() call from a property, it will hit the BaseWebElement() and therefore not have access to the nicely formatted constructor. We should go ahead and add this functionality.

A/C

kgress commented 3 years ago

Already in scaffold