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

cannot find help document for FindExpreesionCollection in Webaii 2 API library?

3 Answers 39 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Surbhi
Top achievements
Rank 1
Surbhi asked on 12 Apr 2011, 11:16 PM
Hi,

I am trying to move my test code from webaii 1 to webaii 2. In my code I have used

FindParamCollection

 

 

class in webaii1 and for webaii 2 it says this class has been deprecated, use

 

 

FindExpressionCollection<T>.

I am not able to find the implemenation details of this class in the help document http://www.artoftest.com/support/webaii/WebAii_2.0_API/Index.aspx. Can you please help?

 

3 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 13 Apr 2011, 10:25 PM
Hello Surbhi,

You're right that is missing from our online documentation. Sorry about that!

At the test method level you can declare a Find attribute like this:

[TestMethod]
[Find("HtmlElement1", "id=elementID")]
[Find("XamlElement1", "AutomationId=elementID")]
public void DownloadTest()


Within your code you reference these Find expressions by it's key like this:

Elements.GetHtml<HtmlButton>("Element1").Click();
Elements.GetXaml<Button>("Element1").User.Click();

The documentation on the new FindExpression's, which is what the Find attribute uses, is here.

Kind regards,
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
Mark
Top achievements
Rank 2
answered on 27 Aug 2013, 06:02 PM
I added the "Find" attribute and it could not be found. Please add any other items that need to be in place. I'm using version 2013.1.806.0.

Thanks,
Mark
0
Boyan Boev
Telerik team
answered on 02 Sep 2013, 07:19 AM
Hello Mark,

We are constantly improving our documentation and we will definitely add it as soon as possible.

Thank you for your feedback.
 

Regards,
Boyan Boev
Telerik
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Surbhi
Top achievements
Rank 1
Answers by
Cody
Telerik team
Mark
Top achievements
Rank 2
Boyan Boev
Telerik team
Share this question
or