yandex-qatools / htmlelements

Html Elements is a Java framework providing easy-to-use way of interaction with web-page elements in web-page tests.
Other
271 stars 116 forks source link

Feature: Possibility to select drop-down by index, value, and visible text. #153

Open sankouski-dzmitry opened 5 years ago

sankouski-dzmitry commented 5 years ago

Currently, htmlelements have the only way to fill Select elements in Form element: by value.

I suggest to add possibility to specify select fill strategy (index, value, text)

It could be done, for example with parsing value: if value begins with 'index=' than Select::selectByIndex method will be used if value begins with 'text=' than Select::selectByVisibleText method will be used etc..