RadMaskedTextInput: how to insert value in it using Test Studio

3 posts, 0 answers
  1. Kanwarjit
    Kanwarjit avatar
    3 posts
    Member since:
    Jul 2015

    Posted 13 Jan 2017 Link to this post

    RadMaskedTextInput: how to insert value in it using Test Studio, I need to raise the valuechanged event so that other button on UI will be enabled.

     

    Thanks,

    Kanwar

  2. Kanwarjit
    Kanwarjit avatar
    3 posts
    Member since:
    Jul 2015

    Posted 13 Jan 2017 Link to this post

    We are using RadMaskedTextInput, could you tell me anyway to fill its value(or text) which will generate the changed event so that other controls on screen will use it to enable them self.
    Basically I am able to enter value into RadMakedTextInput but its not doing anything. It looks like we need to do some action so that this control value must be changes. I need the way in test studio or any code snippet which I can use here in my test suite code.


    <Border Grid.Row="1" Grid.Column="3" Visibility="{Binding ShowAlias, Converter={converters:BooleanToVisibility Flavor=Collapsed}}"  VerticalAlignment="Center">
                <telerikInput:RadMaskedTextInput Mask="" Placeholder=" " IsClearButtonVisible="False" Margin="1,0" TabIndex="2" x:Name="txtAlias" EmptyContent="Alias" Height="22" Width="150"
                                           HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Value="{Binding Model.PortfolioProviderWrapper.ProviderViewModel.Alias,Mode=TwoWay}"
     Background="{Binding Model.PortfolioProviderWrapper.ProviderViewModel.IsAliasValid, Converter={StaticResource falseYellowBrushConverter}}"
                                           Visibility="{Binding Model.PortfolioProviderWrapper.ProviderViewModel.IsAliasAllowed, Converter={converters:BooleanToVisibility Flavor=Collapsed}}" InputBehavior="Insert"/>
            </Border>
  3. Elena Tsvetkova
    Admin
    Elena Tsvetkova avatar
    942 posts

    Posted 18 Jan 2017 Link to this post

    Hi Kanwar,

    Since there is an event attached to the text input it needs to be triggered for the proper work of the tested application. Here is how you could fire the events in code. I hope this will be helpful to you. 

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