You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DropDown.SelectElementByText does not trigger change event #220
when using the DropDown.SelectElementByText the change event on the client-side is not triggered. A simple change to the TestStack.Seleno/PageObjects/Controls/DropDown.cs method change can fix this:
From: var scriptToExecute = string.Format("$('#{0} option:contains(\"{1}\")').attr('selected',true)", Id, optionText.ToJavaScriptString());
To: var scriptToExecute = string.Format("$('#{0} option:contains(\"{1}\")').attr('selected',true).change()", Id, optionText.ToJavaScriptString());
Activity
robdmoore commentedon Nov 8, 2015
There are other events that don't get triggered too, but I agree that change is the most important and this has annoyed me in the past.
You can overcome it by dropping down to Selenium Web Driver, but that code's not as nice of course.
I'm happy for you or someone else to submit a pull request to add the
change()call.