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

Test Studio can't find TextBox inside GridViewDataColumn

1 Answer 84 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Adriano
Top achievements
Rank 1
Adriano asked on 29 Aug 2013, 07:04 PM
Hello,

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">
                    <telerik:GridViewDataColumn.EditorStyle>
                        <Style TargetType="TextBox">
                            <Setter Property="MaxLength" Value="9" />
                            <Setter Property="Name" Value="txtPrice" />
                        </Style>
                    </telerik:GridViewDataColumn.EditorStyle>
                    <telerik:GridViewDataColumn.Footer>
                        <TextBlock Text="{Binding Source={StaticResource LocStrings}, Path=TtVolume}" MinWidth="50"></TextBlock>
                    </telerik:GridViewDataColumn.Footer>
                </telerik:GridViewDataColumn>

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.

1 Answer, 1 is accepted

Sort by
0
Rodney
Telerik team
answered on 03 Sep 2013, 08:49 PM

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.   
 

Regards,
Rodney
Telerik
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Adriano
Top achievements
Rank 1
Answers by
Rodney
Telerik team
Share this question
or