NSelene icon indicating copy to clipboard operation
NSelene copied to clipboard

It is possible to add some SelectElement wrapper?

Open NahrebetskyiPavel opened this issue 4 years ago • 1 comments

Smth like:

SeleneElement sElement = S("...")

public SeleneElement SelectElementByIndex(SeleneElement element, int index) {
new SelectElemen(element.ActualWebElement).SelectByIndex(index); return element; }

NahrebetskyiPavel avatar Nov 04 '20 13:11 NahrebetskyiPavel

It's possible, but such feature will be "not for all". On many projects the implementation of Selects is custom. You will definitely need implementing your own wrapper on such projects. Why then add some feature to Selene, that will be be usefull only for someone? Take also into account that a lot of newcomers will try to use this feature, fail and will struggle to find the cause...

Yet, we can think more on this topic... Maybe I am wrong:) Maybe we could add such wrapper into some "support" namespace and mark it as "better to copy & paste this code into your project and edit, don't use it as it is"...

yashaka avatar Nov 05 '20 09:11 yashaka