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

Fetching data using jquery.

2 Answers 112 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Vinay
Top achievements
Rank 1
Vinay asked on 16 May 2018, 12:17 PM

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 Answers, 1 is accepted

Sort by
0
Vinay
Top achievements
Rank 1
answered on 16 May 2018, 12:20 PM

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

0
Elena
Telerik team
answered on 18 May 2018, 02:36 PM
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
 
Tags
General Discussions
Asked by
Vinay
Top achievements
Rank 1
Answers by
Vinay
Top achievements
Rank 1
Elena
Telerik team
Share this question
or