This is a migrated thread and some comments may be shown as answers.

How to Highlight a WebElement in Telerik Teststudio

3 Answers 106 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
farheen
Top achievements
Rank 1
farheen asked on 28 Jul 2015, 01:21 PM

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

 

3 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 28 Jul 2015, 07:25 PM
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!
0
farheen
Top achievements
Rank 1
answered on 29 Jul 2015, 06:41 AM

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.

0
Cody
Telerik team
answered on 29 Jul 2015, 09:10 PM
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!
Tags
General Discussions
Asked by
farheen
Top achievements
Rank 1
Answers by
Cody
Telerik team
farheen
Top achievements
Rank 1
Share this question
or