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

jQuery triggers #261

Open edwardrbaker opened 6 years ago

edwardrbaker commented 6 years ago

Is it possible to have an update to fire jQuery triggers? When selecting a value for a RadioButtonGroup, our page isn't catching the event. It should be as simple as adding ".trigger('click')" to the end of the Radio (and maybe Select) groups.

mwhelan commented 6 years ago

Hi @erbaker . I don't quite follow what you are asking. Could you please provide a bit more detail on the scenario you are trying to automate with Seleno? Are you using ASP.Net MVC5?

edwardrbaker commented 6 years ago

Hi @mwhelan , We have radio buttons on our page, and a jQuery event listener for onClick() on the radios. When seleno selects a radio button, it's setting the attribute (.attr('checked', true)) which does not fire the onClick() event of our radio buttons.

I can submit a PR as an example, and it might make more sense. Let me know.

Ed