TestStack / TestStack.Seleno

Seleno helps you write automated UI tests in the right way by implementing Page Objects and Page Components and by reading from and writing to web pages using strongly typed view models.
http://teststack.github.com/TestStack.Seleno/
MIT License
180 stars 60 forks source link

HtmlControlFor<DropDown> implementation #243

Open imilchev opened 8 years ago

imilchev commented 8 years ago

I have a question about the implementation of the HtmlControlFor and more specifically the methods SelectElementByText and SelectElement. Why the first one does use .change() of jQuery and the second one doesn't. Basically this forces me to create my custom function to select an option from a dropdown as we use Knockout and if we just change the value without calling .change() then the observable is not updated.

Is this done for some legit reason or is it a bug?

robdmoore commented 8 years ago

No specific reason.

Feel free to send a PR to add the call.

On 17 Mar 2016, at 8:43 pm, crazybg321 notifications@github.com wrote:

I have a question about the implementation of the HtmlControlFor and more specifically the methods SelectElementByText and SelectElement. Why the first one does use .change() of jQuery and the second one doesn't. Basically this forces me to create my custom function to select an option from a dropdown as we use Knockout and if we just change the value without calling .change() then the observable is not updated.

Is this done for some legit reason or is it a bug?

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub