Setting Disabled via JS is failing

2 posts, 0 answers
  1. Brian Mains
    Brian Mains avatar
    485 posts
    Member since:
    Oct 2008

    Posted 25 Oct 2010 Link to this post


    A custom ASP.NET AJAX component's code is setting an element's disabled property to true.  How do I check this with Web UI Test Studio?  I thought it might set the attribute disabled to disabled, but its set to '', and so it must be evaluatable only through JS code.  How do I perform that check?

    Again, it's a custom ASP.NET AJAX component using the ASP.NET AJAX framework, so I have a companion client-side script doing the work.


  2. Cody
    Cody avatar
    3354 posts

    Posted 01 Nov 2010 Link to this post

    Hi Brian Mains,

    If you want to invoke JavaScript from your test code, we have documentation how to invoke JavaScript, and how to read values returned.

    You can also test the disabled property using code like this:

    HtmlInputButton btn = Find.ById<HtmlInputButton>("Button1");

    All the best,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top