OnChangeEvent with selector.MultiSelectByText(string)

4 posts, 0 answers
  1. Matt
    Matt avatar
    19 posts
    Member since:
    Dec 2013

    Posted 06 May 2014 Link to this post

    Hello,

    There's an overload for a selector element titled SelectByText(string, bool) which has its second parameter invoke an on change event. This overload is what's necessary in my code to select a single option on my software's page.

    However, there appears to be no MultiSelectByText overload with a similar invoke event, and it seems an immediate call to

    selector.InvokeEvent(ArtOfTest.WebAii.Core.ScriptEventType.OnChange) 

    after the MultiSelectByText() is done, does not have my software respond to the selected options.

    Note, the options do show as selected, implying the MultiSelectByText is setting them, and it just looks like it needs the same overload functionality to initiate the OnChangeEvent.

    Any Help would be appreciated, thanks.
  2. Boyan Boev
    Admin
    Boyan Boev avatar
    1040 posts

    Posted 09 May 2014 Link to this post

    Hello Matt,

    Thank you for your feedback.

    I have logged a feature request which you can track and vote for it here.

    Here is an article how you can invoke jQuery events manually.

    Hope this helps.

    Regards,
    Boyan Boev
    Telerik
     
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
     
  3. Matt
    Matt avatar
    19 posts
    Member since:
    Dec 2013

    Posted 09 May 2014 Link to this post

    Thanks Boyan, I realized I've been invoking events incorrectly and was not using jQuery invokes.
  4. Boyan Boev
    Admin
    Boyan Boev avatar
    1040 posts

    Posted 11 May 2014 Link to this post

    Hi Matt,

    Glad to hear that.

    Should you have any additional questions, please do not hesitate to contact us.

    Regards,
    Boyan Boev
    Telerik
     
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
     
Back to Top