This is a migrated thread and some comments may be shown as answers.
Data Driven Find Expressions
4 Answers 34 Views
This is a migrated thread and some comments may be shown as answers.
Ohsha
Top achievements
Rank 1
Ohsha asked on 27 Mar 2012, 09:03 PM

Hi, 

I'm following the 
Data Driven Find Expressions
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/code-samples/general/data-driven-find-expressions.aspx 

But got the following error:

(CS1061) 'TestProj.Pages.TelerikExtensionsForASPPage' does not contain a definition for 'UnorderedList' and no extension method 'UnorderedList' accepting a first argument of type 'TestProj.Pages.TelerikExtensionsForASPPage' could be found (are you missing a using directive or an assembly reference?)

Does that mean that I have to install the TelerikExtensionsForASPPage before following the Data Driven Find Expressions example? 

Thanks


4 Answers, 1 is accepted

Sort by
0
Accepted
Anthony
Telerik team
answered on 27 Mar 2012, 10:12 PM
Hello Ohsha,

It means that the UnorderedList needs to be added to the Elements Explorer before you can reference it in a coded step. I've updated the article to include this step. 

Regards,
Anthony
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Ohsha
Top achievements
Rank 1
answered on 27 Mar 2012, 10:25 PM
"I've updated the article to include this step.  "

cool. thanks

I've got two questions regarding the Data Driven Find Expressions document.


3. Close the browser to stop recording.

4. Insert a Script Step.

then locate the parent element in the DOM Explorer 

Q1: how to insert a script step

Q2: Having closed the browser and stop recording, how can I locate the parent element in the DOM Explorer?

Thanks


0
Accepted
Anthony
Telerik team
answered on 27 Mar 2012, 11:10 PM
Hello Ohsha,

1. Press Script Step from the Add ribbon on the Record tab. See here for a screen shot.

2. That was one of the issues with the original version of the article. Refresh the page to see the new sequence of steps. With the browser open and in recording mode on the correct page, enable hover over highlighting from the Recording Toolbar. Then you can locate the ComboBox in the DOM and locate the parent <ul> element.

Kind regards,
Anthony
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Ohsha
Top achievements
Rank 1
answered on 28 Mar 2012, 02:24 AM
Oh, much clearer this time. Thanks Anthony.
Oh, BTW, maybe you want to link the word "Insert" to the url you just mentioned, or maybe not...

Insert a Script Step.

Asked by
Ohsha
Top achievements
Rank 1
Answers by
Anthony
Telerik team
Ohsha
Top achievements
Rank 1
Share this question
or