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

Incorrect Hyperlink selected by Recorder

2 Answers 53 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Andy Shepherd
Top achievements
Rank 1
Andy Shepherd asked on 30 Mar 2010, 09:44 AM
Hi,

I am fairly new to web automation, have been using Selenium for a little while, but our development platform has changed to Silverlight. I am currently evaluating WebUI Test Studio to see if it fits our buisness needs, however due to the fact our application uses custom controls from a variety of suppliers I need to confirm that Test Studio can work with these controls...

The first issue that I have is that the Recorder is recording an incorrect hyperlink when selecting a link, I understand that it is possible to change the way the recorder identifies a page using the settings but I havent found a setting that works yet.... This seems a strange as when I do 'Locate in Dom' it highlights the correct part of the HTML. 

Scenario:

1) Navigate to http://www.dundas.com/Components/Products/chart/net/Demos/index.aspx
2) Click on the Hyperlink that says 'Click here for the Interactive Marketing Dashboard Demo' within the 'Marketing Dashboard Demo' section

Test step 1 records correctly
Test step 2 records the hyperlink that says 'Dundas Chart for .NET - Personal Finance Demo'

I have attempted to modify the element using 'Edit Element' but validation fails as it is looking for Element: 'a:76' and the Element I want it to find is Element: 'a:95' (Is there a way of changing the element that Im validating against in the Editor?)

The Find Logic dispays:
id                    Exact        demosContents        THEN
tagIndex            Exact        a:8   
Expression
id=demosContents,|,tagIndex=a:8

Actions
Element: [Element: 'a:76'] 

Hoping that you can help me resolve this issue as this really does seem like a super tool!

Many Thanks
Andy

2 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 30 Mar 2010, 04:16 PM
Hi Andy Shepherd,

Thank you for taking the time to evaluate our products! You just uncovered a bug in the product for us. Thanks for reporting this problem! We'll address it as quickly as we are able to.

In studying that particular webpage I find it is poorly designed from a test automation point of view. There are elements with duplicate id's as you can see in the attached screenshot "dundaspage.png".

The good news is that there is an easy work-around. Change the find expression to find by text content. Set the content to "Click here for the Interactive Marketing Dashboard Demo". See the attached screenshot "dundasmarketingfindexpression.png" for an example.

The product should work much better for you on web pages with better design. Let us know if you have further problems with your evaluation.

All the best,
Cody
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.
0
Andy Shepherd
Top achievements
Rank 1
answered on 31 Mar 2010, 02:34 PM
Hi Cody,

Thanks for the explanation.
I'm glad it was a combination of a poorly designed website and a bug as it was driving me insane thinking it was something that I was doing wrong...
Test is now working using your workaround.

Many Thanks
Andy

Tags
General Discussions
Asked by
Andy Shepherd
Top achievements
Rank 1
Answers by
Cody
Telerik team
Andy Shepherd
Top achievements
Rank 1
Share this question
or