Picklist state is not saved

6 posts, 0 answers
  1. algot
    algot avatar
    57 posts
    Member since:
    Nov 2011

    Posted 20 Mar 2012 Link to this post

    I use following step to select value from combo-box, but after saving the form the combo-box has empty value.
    http://screencast.com/t/0M396CyN
    Select_Country is defined as
    http://screencast.com/t/dXvX1f8wg3v
  2. algot
    algot avatar
    57 posts
    Member since:
    Nov 2011

    Posted 20 Mar 2012 Link to this post

    I found out that if I defined combo-box as
    tagname=select,name=sitecore_country
    it works fine.
    If I define combobox as
    tagname=select,id=sitecore_country
    value from combo-box is selected but it is not saved on form saving.
  3. Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 20 Mar 2012 Link to this post

    Hello Alexander,

    I'm not able to reproduce the behavior in my testing. Please provide more information, specifically a means to reproduce the issue (either in your app or a on public site), so we can continue troubleshooting.

    Greetings,
    Anthony
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  4. algot
    algot avatar
    57 posts
    Member since:
    Nov 2011

    Posted 21 Mar 2012 Link to this post

    I couldn't give you link to this site. So I'll try to describe it more detailed.

    I have following control
    <SELECT style="IME-MODE: auto" id=sitecore_country class="ms-crm-SelectBox " tabIndex=1240 name=sitecore_country attrPriv="7" req="0" defaultSelected="null"><OPTION title="" selected value=""></OPTION><OPTION title=Afghanistan value=89>Afghanistan</OPTION><OPTION title=Albania value=90>Albania</OPTION>....<OPTION title=Zimbabwe value=168>Zimbabwe</OPTION></SELECT>

    If I define it as
    tagname=select,name=sitecore_country
    value is selected and is saved fine.
    If it is defined as
    tagname=select,id=sitecore_country
    then value is set but is not saved after form save.
  5. Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 21 Mar 2012 Link to this post

    Hello Alexander,

    I still cannot reproduce the issue after adapting your code to my local testing. I can't explain why identifying by id isn't working as expected without seeing the issue first-hand.

    Is it an issue to identify the <select> element by name so the test behaves correctly?

    Greetings,
    Anthony
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  6. algot
    algot avatar
    57 posts
    Member since:
    Nov 2011

    Posted 21 Mar 2012 Link to this post

    No, it's not an issue for me. Later to find workaround I had to run recorder to determine how Telerik define this element.
Back to Top