How to Highlight a WebElement in Telerik Teststudio

4 posts, 0 answers
  1. farheen
    farheen avatar
    3 posts
    Member since:
    Jul 2015

    Posted 28 Jul 2015 Link to this post

    Hi Team,

     

    I'm currently working on silverlight application in Telerik Teststudio (Standalone version) new version on IE win7.I've automated a sample scenario I've got a task that I need to highlight each and every webelement that Im going to before perform actions on it.So, I've used a predefined method FrameworkElement.Highlight(); so that I'm able to see the fields were getting highlighted but the thing is I'm  able to see only few fields are getting highlighted like TextBox,ComboBox,TextBlock but not the HtmlInputText etc and also I'm not able to highlight the elements in window popups in the application.

    I've another concern I need to highlight the normal fields with "red" color and for verification/validation purpose I need to use "green" color I've searched for this type of cutomisation code but I did'nt find anywhere can you please tell me wether it is possible or not and if possible please share how to make it work.

    Thanks in advance,

    Farheen

     

  2. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 28 Jul 2015 Link to this post

    Hello Farheen,

    I'm a little confused. You state you're testing a Silverlight application then talk about how Test Studio is not highlighting a HtmlInputText. This confuses me because Silverlight applications don't have a HtmlInputText control. They only apply to regular HTML applications, not Silverlight applications.

    For highlighting, have you looking into our own Annotation feature (step 5 of this page)? Test Studio can do all the highlighting plus annotation for you. However it won't "highlight the normal fields with "red" color and for verification/validation purpose I need to use "green" color". Test Studio will use the same color throughout the life of the test.

    You could also try our custom annotator from code.

    That's all I can offer for now. To do anything more for you I'll need a copy of your test plus access to your application (a URL I can connect to) so I can run it and see the problem happening on my machine. Then I can diagnose why it's not working as expected.


    Regards,
    Cody
    Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
  3. farheen
    farheen avatar
    3 posts
    Member since:
    Jul 2015

    Posted 29 Jul 2015 in reply to Cody Link to this post

    Hi Cody,

     

    Thank you so much for your quick response , I've some questions to ask

    1. Is the Annotation Feature works for only quick execution or for testlists execution also?

    2. Is the highlighting with Annotation Feature is works only for recorded steps or for coded steps also?

    3. Is there any customised code to highlight the webelements instead of  these automatic "Annotation Feature" Enabled using telerik standalone version?

    4. Could you please delete the "Highlight.png" Image that I have posted above?.

     

     

    Thanks in advance,

    Farheen.

  4. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 29 Jul 2015 Link to this post

    Hi Farheen,

    Item 1) You can also enable annotation for all tests contained in a test list as shown in the attached screen shot.

    Or you could use a coded step to enable/disable annotation during specific steps of the test. This is guaranteed to work in both quick execute and test lists because using code will override any other settings.

    Item 2) Our annotation works for both coded and noncoded steps. The underlying Find Element framework code highlights the elements as it's finding them on the current web page.

    Item 3) This page (same as in first item) is what we support.

    Item 4) Done.


    Regards,
    Cody
    Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
Back to Top