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

Problems finding a dynamic element

2 Answers 89 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 16 Nov 2012, 09:07 PM
I am having a hard time verifying the text contained in some dynamic content on my web page. 
Here are the steps that I am taking. 

Navigate to the Web site
Type in 'WA' in the input box of the jQuery-ui Dynamic Drop Down List
Wait until the list comes up
Select the 8th list item
Verify its text

Unfortunately when I try to record this test it does not grab the list item it actually is grabbing so non-dynamic content that is directly behind the list box item.  I think that this is because the List goes away as soon as you try to select the list item.

Is there any way to grab the dynamic content.   I know that in MSFT CodedUI you have to actually hold down the ctrl key when you click the element you are trying to capture.  Do you do anything like that with this?

Thanks

2 Answers, 1 is accepted

Sort by
0
Byron
Telerik team
answered on 16 Nov 2012, 10:56 PM
Hi John,

Thanks again for trying Test Studio. If you are using a Telerik RadControl, you can use hover-over highlighting to access the different control elements through our translator. Otherwise, I recommend adding the element from the DOM in the Find Element dialog. I also recommend reviewing our documentation on using chained find expressions. Specifically, you can use a chained find expression to locate the drop-down and then the list item below it in the DOM; this way, you may be able to create a more reliable find expression for the child element.

Please let us know if we can help you further.

All the best,
Byron
the Telerik team
Are you enjoying Test Studio? We’d appreciate your vote in the ATI automation awards.
Vote now
0
John
Top achievements
Rank 1
answered on 16 Nov 2012, 11:09 PM
I have been trying to use a find expression from a coded step.  When I run it, it appears to not actually generate the dynamic UL (unordered list) that it should be, even though it should be triggered by the action of typing a string into the auto complete text input.  I can try some of the other methods mentioned below.
Tags
General Discussions
Asked by
John
Top achievements
Rank 1
Answers by
Byron
Telerik team
John
Top achievements
Rank 1
Share this question
or