dropdown value selection is not captured

16 posts, 0 answers
  1. sabarishbabu
    sabarishbabu avatar
    136 posts
    Member since:
    Apr 2009

    Posted 25 Jan 2011 Link to this post

    Hi,

             Selected dropdown values are not being replayed while executing the test in Web UI test Studio.

    Recorded a test with selecting a value from the dropdown list.
    While the test is executed in Teststudio, the mouse pointer is showing at the dropdown , after that the step is executing
    and passed, but the selected value is not picked from the drodown. 

    Please find attached my screenshot.

    thanks,
  2. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 27 Jan 2011 Link to this post

    Hello Sabarishbabu,
         could you please provide more info on which DropDown control is being used in your application?

    I need to reproduce this problem in order to analyze it.

    Is it a Telerik Silverlight Control? If so please go through this demo page and try to find a find an identical control that will allows us to reproduce the problem:
    http://demos.telerik.com/silverlight/#Controls

    If it's a Telerik ASP.NET control, please go through this demo page and try to find a find an identical control that will allows us to reproduce the problem:
    https://demos.telerik.com/aspnet-ajax/controls/examples/default/defaultcs.aspx

    The easiest method for us to study this problem would be if you are able to provide me with access to the page containing this control (if not already publicly available).

    If you need to share any data, you feel, is too sensitive for this public forum - please let me know and I'll give you my e-mail to send it to.

    Hope to hear from you soon!

    Kind regards,
    Stoich
    the Telerik team
    Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
  3. gargi
    gargi avatar
    7 posts
    Member since:
    May 2011

    Posted 30 Jun 2011 Link to this post

    Hi ,

    I am facing similar issue as mentioned by Sabarishbabu. What i have done is i added partocular value of drop down list to project element and i performed select operation using that element. But this solution is not proper as when ever value in dropdown change , that value elements needs to be enter in Elements pane. for Example , there is Gender drop down list in your application. To select female value , i have added FemalCombobox element using hover over the element method in Recording Pane.  Can you please suggest any another method how can i dynamically select values from dropdown list.?

    Thanks in Advance,
    Gargi Shah
  4. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 06 Jul 2011 Link to this post

    Hello Gargi,
        if I understand your use case correctly you want to record a step that will select a particular value from a drop-down regardless of its value (i.e. text). This means that the selection will have to be based on index. You can define the way that dropdown selections are recorded from the Project Configuration menu (screenshot 1).
    You can change the selection for existing Dropdown selection steps from the Properties menu (screenshot 2).

    Kind regards,
    Stoich
    the Telerik team
    Register today for a live 'What's New in Test Studio R1 2011 SP2' event on Tuesday, July 19 at 2pm EST!

    Have you looked at the new Online User Guide for Telerik Test Studio?
  5. gargi
    gargi avatar
    7 posts
    Member since:
    May 2011

    Posted 06 Jul 2011 Link to this post

    Hi ,

    Thanks for Reply. But i am not asking for selection based on Index. I want to select specific value from Dropdwon list. but that selection step is not recorded by default so what i have done is , added that value as a element in Project Element list and perform LeftClick ( Selection) for that specific value. How can i do that ?

    Also, based on your anwser above. what is difference between ByValue and ByText Recording option for Dropdown list?

    Regards,
    Gargi Shah
  6. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 06 Jul 2011 Link to this post

    Hi Gargi,
         generally you can do it in code. Let's say you have an app with a dropdown and use add the dropdown (actually referred to as HTML Select) to Project Elements by using "AddToProjecElements" option. Let's say the dropdown was stored under Pages.MyPages.Selector. Then you can select a drop-down value in code like this:
    Pages.MyPages.Selector.SelectByValue("myDropDownValue", true);
    However, I would like to reproduce this issue so that we may fix it. To that end would you please provide the same information I request from Sabarishbabu earlier.

    When you use SelectByValue the required dropdown element is located by its TextContent. When you use SelectByIndex we simply select in based on its place in the dropdown (i.e. first value, second value etc.) without knowing anything about its TextContent.

    Greetings,
    Stoich
    the Telerik team
    Register today for a live 'What's New in Test Studio R1 2011 SP2' event on Tuesday, July 19 at 2pm EST!

    Have you looked at the new Online User Guide for Telerik Test Studio?
  7. gargi
    gargi avatar
    7 posts
    Member since:
    May 2011

    Posted 06 Jul 2011 Link to this post

    Hi ,

    Dropdown box used is of type Radtoggle Button. Steps are not recorded bydeafult. So How can i added coded step for that selection ?

    I Understand about ByValue and ByIndex. but there are 3 options. 1)ByValue 2)ByIndex and 3)ByText. So what is difference between ByValue and ByText?

    Please tell me if you need anyother information from my side?

    Regards,
    Gargi Shah
  8. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 06 Jul 2011 Link to this post

    Hello Gargi,
        are you sure you're working with a Radtoggle Button control:
    http://demos.telerik.com/aspnet-ajax/button/examples/togglebutton/defaultcs.aspx

    Perhaps you're working with a RadComobox instead:
    http://demos.telerik.com/aspnet-ajax/combobox/examples/default/defaultcs.aspx

    In any case I couldn't reproduce the issue on any of these controls (i.e. everything was recorder correctly). Please checkout the samples we have on our demo page and try to reproduce the issue. If you can get a successful repro that would be invaluable when troubleshooting the issue.

    On the difference between ByText and Value:
    Let's take the following HTML DropDown (reference):
     
    <select>
      <option value="volvo">Volvo</option>
      <option value="saab">Saab</option>
      <option value="mercedes">Mercedes</option>
      <option value="audi">Audi</option>
    </select>
    As you can see value is an attribute of each option Element while the text itself is the TextContent of the element.

    Greetings,
    Stoich
    the Telerik team
    Register today for a live 'What's New in Test Studio R1 2011 SP2' event on Tuesday, July 19 at 2pm EST!

    Have you looked at the new Online User Guide for Telerik Test Studio?
  9. gargi
    gargi avatar
    7 posts
    Member since:
    May 2011

    Posted 07 Jul 2011 Link to this post

    Hi,


    Its a kind of RadComobox . It record step of opening Dropdown box but it didn't record selecting particular value from dropdown step.

    Thank you for ByValue and ByText explanation . I am now clear for that.


    Regards,
    Gargi Shah
  10. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 07 Jul 2011 Link to this post

    Hello Gargi,
        you're using an older version of Test Studio. Please go ahead and upgrade the the new R1 release of Test Studio. It incorporates many new features and fixes. It's quite likely that the issue you're experiencing was already fixed.

    Greetings,
    Stoich
    the Telerik team
    Register today for a live 'What's New in Test Studio R1 2011 SP2' event on Tuesday, July 19 at 2pm EST!

    Have you looked at the new Online User Guide for Telerik Test Studio?
  11. Lurife
    Lurife avatar
    4 posts
    Member since:
    Feb 2013

    Posted 11 Feb 2013 Link to this post

    Hi,

    I'm recording a test which clicks on the dropdown button and selects an item from the dropdown by checking on the correspnding checkbox but the test wasn't recognized by the recorder.






















  12. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 14 Feb 2013 Link to this post

    Hello Lurife,
    would you give us some additional details on the problem. Are you using Telerik Rad controls ? I'm not entirely sure I understand the issue you're encountering. We usually recommend to our users that they create a desktop recording of the issues they encounter. Jing is a great piece of software for this.

    Hope to hear from you soon?

    Kind regards,
    Stoich
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  13. Lurife
    Lurife avatar
    4 posts
    Member since:
    Feb 2013

    Posted 14 Feb 2013 Link to this post

    Hi,

    Sorry I can't use Jing software it was blocked to download here in the office. I don't know about Rad Controls, what I've shown you earlier in the is the screenshot is what the recorded step should be. I am recording a test step in a WPF application.

     > It should click on the dropdown, the triangle like image beside (None) word and lets me select/check on the checkboxes on the corresponding option.

    When I run the recorded step, it doesn't do the clicking/opening on the dropdown, instead it just collapse the arrow like beside the (Roles) word see screenshot.

    It failed attached are the screenshot of the failed step. Of course it failed on the step with the below error:

    Failure Information: ~~~~~~~~~~~~~~~Element Not found!FindExpression used: [name 'Exact' PART_ScrollViewer]InnerException:ArtOfTest.Common.Exceptions.FindElementException: Element Not found!FindExpression used: [name 'Exact' PART_ScrollViewer]


    Element not found in selecting/checking in the checkboxes, because it doesn't perform the clicking/opening on the dropdown. It doesn't record/ recognize the clicking/opening the dropdown action.

    Hope you get what I mean. I appreciate your reply and answer to my problem.

    I'm using telerik Test Studio ver. 2012.2.920.0


    Thanks,
    Lurife
  14. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 19 Feb 2013 Link to this post

    Hi Lurife,
    looking at your test in the screenshot I can see that step 7 is indeed a "collapse" step. So it seems to me that it's not surprising that the test collapses the control on playback. Can you try recording the test again. I believe you might have made a slight mistake when recording the test and added a collapse step in the wrong place - see screenshot:
    http://screencast.com/t/QiltuAi0ymK6

    The actual error message tells you Test Studio was looking for a specific element in the page but it was unable to find it. Let me know if this helps.

    Regards,
    Stoich
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  15. Seb
    Seb avatar
    3 posts
    Member since:
    Dec 2015

    Posted 05 Oct Link to this post

    Hi, 

    I am facing similar issue as mentioned by Sabarishbabu. I am using a WPF Application and the Control "telerik:RadComboBox".
    I want to record a step that select a specific value from this drop down. But the selected value is not accepted. I tried to use the "SelectByText" and "SelectByValue" method, but nothing works. Only the old value is accepted.

    In short:
    - The Window opens with the old value in a WPF Window
    - The record step changes the value of the telerik:RadComboBox
    - The Window reconfigures and has its old value.... WHY???

    Kind regards
    Seb
  16. Boyan Boev
    Admin
    Boyan Boev avatar
    1043 posts

    Posted 11 Oct Link to this post

    Hi Seb,

    1. What version of Test Studio do you use?

    2. Is there a chance you can send us your WPF application so we can reproduce this issue on our end give you a solution.

    3. Please record a short Jing video so we can better understand the problem better. 

    Hope to hear from you soon.

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