Fetching data using jquery.

3 posts, 0 answers
  1. Vinay
    Vinay avatar
    47 posts
    Member since:
    Jan 2015

    Posted 16 May Link to this post

    Hi telerik,
    I am working on a scenario where i have to access the value using jquery. This below div [class="client-errors"] contains data which i exposed using jquery.

    <div id="automation-testing">
        <div class="client-errors"></div>
    <div class="menus"></div></div>

    At my application end i am able to fetch the requested data using - "$("automation-testing div.client-errors").data(). But when i am trying to access it using telerik  testing framework, i am not getting that data.

           HtmlControl ctrl = Manager.ActiveBrowser.Find.ByExpression<HtmlControl>("id=automation-testing", "|", "class=client-errors");

           Console.Writeline(ctrl.AsjQueryControl().val);

     

     

     

     

     

  2. Vinay
    Vinay avatar
    47 posts
    Member since:
    Jan 2015

    Posted 16 May in reply to Vinay Link to this post

    I am not getting any data using the above approach.

    Please look into this and let me know the way to fetch this info.

     

    Thanks & Regards

  3. Elena Tsvetkova
    Admin
    Elena Tsvetkova avatar
    938 posts

    Posted 18 May Link to this post

    Hello Ranjeet,

    Please note this thread will be closed as it duplicates another post of yours. I would like to kindly ask you to refer to it here

    Regards,
    Elena Tsvetkova
    Progress Telerik
     
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
     
Back to Top