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

4 posts, 0 answers
  1. Surbhi
    Surbhi avatar
    1 posts
    Member since:
    Apr 2011

    Posted 12 Apr 2011 Link to this post

    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?

     

  2. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 13 Apr 2011 Link to this post

    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
  3. Mark
    Mark avatar
    2 posts
    Member since:
    Feb 2012

    Posted 27 Aug 2013 Link to this post

    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
  4. Boyan Boev
    Admin
    Boyan Boev avatar
    1045 posts

    Posted 02 Sep 2013 Link to this post

    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
Back to Top