How to extract the value directly in C#?

2 posts, 0 answers
  1. Jerry
    Jerry avatar
    1 posts
    Member since:
    Jan 2013

    Posted 28 Jan 2013 Link to this post


    I am new to Telerik and our team is doing some survey about Telerik Test Studio and if it can be integrated with Visual Studio, it is great.

    I would like to know if it is possible to extract the value via C#.

    I use Telerik test studio to record the test , extract the value and generate it to the following coded step in Pages.g.cs . But Extraction step doesn’t generate to the coded step (I know some posts say I need to use .tstest to do data binding, but that's not what we want)

    public ArtOfTest.WebAii.Controls.HtmlControls.HtmlTableCell x1329TableCell




                        return Get<ArtOfTest.WebAii.Controls.HtmlControls.HtmlTableCell>("TextContent=13.29", "tagname=td");



    Because the value (yellow) is dynamic, is there any way to get the value directly via C#? How to rewrite the above function and make it work?  :)


  2. Mario
    Mario avatar
    8 posts

    Posted 01 Feb 2013 Link to this post

    Hello Jerry,

    Thank you for choosing to evaluate Test Studio.

    Please see this article for how to Get/Set Extracted Variables in Code. Note: since the TextContent we are looking to extract from this object is dynamic, we wouldn't want to use it as part of the find logic.

    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top