Test Studio can't find TextBox inside GridViewDataColumn

2 posts, 0 answers
  1. Adriano
    Adriano avatar
    19 posts
    Member since:
    Jul 2012

    Posted 29 Aug 2013 Link to this post


    I'm evaluating Test Studio, it's being pretty satisfying but I ran into something very troublesome, and essential to almost any test.

    I have an application in Slverlight that uses a Telerik Rad GridView using GridViewComboBoxColumn (working fine) and GridViewDataColumntext: 

    <telerik:GridViewDataColumn Header="{Binding Source={StaticResource LocStrings}, Path=SPP}" DataMemberBinding="{Binding SystemPrice, Mode=TwoWay}" Width="Auto" UniqueName="SPP"
                                                HeaderTextAlignment="Center" TextAlignment="Right" MinWidth="100" IsFilterable="False">
                            <Style TargetType="TextBox">
                                <Setter Property="MaxLength" Value="9" />
                                <Setter Property="Name" Value="txtPrice" />
                            <TextBlock Text="{Binding Source={StaticResource LocStrings}, Path=TtVolume}" MinWidth="50"></TextBlock>

    The test goes like this:
    -Click the cell and enable the textbox
    -Type in the text box
    The problem is that when Test Studio tries to type the test fails, because it does not find the Textbox:

    '29/08/2013 3:58:32 PM' - Using 'InternetExplorer' version '8.0' as default browser.
    '29/08/2013 3:58:36 PM' - 'Pass' : 1. Navigate to : '[local address]'
    '29/08/2013 3:58:52 PM' - 'Pass' : 2. Wait for Exists 'VisualRootGrid3'
    '29/08/2013 3:58:55 PM' - 'Pass' : 3. LeftClick on Item225Border
    '29/08/2013 3:58:57 PM' - 'Pass' : 4. LeftClick on BackgroundCurrentBorder
    '29/08/2013 3:59:00 PM' - 'Fail' : 5. Type '12.2' into TxtPriceTextbox
    Failure Information:
    Unable to find the specified element: Unable to find the element of type: textbox

    Another thing is that recording works fine, but while executing the test it fails.
  2. Rodney
    Rodney avatar
    6 posts

    Posted 03 Sep 2013 Link to this post

    Hi Adriano,

    Does the application require a single or double-click to enable the text box? In Test Studio, double-clicks are sometimes recorded as single clicks so you should enable the double-click property on any click step that requires it during during playback.

    If that does not work, then I will need to reproduce the behavior. Please provide me with a publicly accessible application that displays the same behavior.   

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