Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    selenium will not record when clicking a non-editable radioGroupItem.

    Lib:SmartClient_SC_SNAPSHOT-2011-01-12
    start selenium ide, click either true or false option, nothing will be recorded in the IDE.
    Code:
    isc.DynamicForm.create({
        fields: [
            {title:"In Stock", 
            valueMap:{"true":"True","false":"False"},type:"radioGroup", disabled: "true"}
        ]
    });
    but it is fine when dealing with checkBox
    Code:
    isc.DynamicForm.create({
        fields: [
            {title:"In Stock", type:"checkbox", disabled:"true"}
        ]
    });

    #2
    Please check that the Selenium extensions file in use is also from the 1/12 SDK you're using.

    Comment


      #3
      i tried with the ide extension from 1/12 build, but selenium still did not record anything.

      Comment


        #4
        Didn't realize that this is a disabled radiogroup. It doesn't respond to click, so Selenium doesn't record anything. Enable it to get a valid recording.

        Comment


          #5
          We need a test case to disable it and use selenium's isEditable to check if it is disabled or enabled.
          Also, if you use the example for checkBox you will see eventhough the checkBox is disabled, selenium still can record its locator.
          So i think the behavior of both radioGroup and checkBox should be the same.

          Comment


            #6
            guys, any update?
            It is an important test case for our product.

            Comment


              #7
              Nothing will be recorded by Selenium because it's disabled. This is expected.

              Separately, you can check whether the FormItem is enabled or not via JavaScript (isDisabled()).

              Comment


                #8
                Thanks for the reply.
                But how do we explain when we click on a disabled checkbox, selenium IDE still can record its locator?

                Comment


                  #9
                  Basically, it's a curiosity (it has no effect during playback). Regardless of whether something is recorded, isDisabled() is the right way to figure out if an item is disabled.

                  Comment


                    #10
                    1.In the playback we need to check if the disable property is set correctly, that is an important testcase.
                    2.If we want to call isDisbaled() method, we need the radioGroup instance, by getting the instance we need its locator. And our metadata is very complex, it will take lots of time to find the code to enable the radioGroup, so enable the radioGroup to get its locator and then disable it will not be efficient for the testing.
                    3. If we can get locator of a disabled checkBox we should also be able to get the locator of a disabled radioGroup button.

                    Comment


                      #11
                      If you're having trouble figuring out the ID of the radioGroupItem, get the locator for the containing form, or get the form from any other item via formItem.getForm(), and use that to get the radioGroupItem.

                      Sorry if your metadata is complex, unfortunately, in some cases of testing, you will need to understand your own software well enough to write JavaScript calls that interrogate widgets.

                      Comment


                        #12
                        1.
                        Code:
                        If you're having trouble figuring out the ID of the radioGroupItem, get the locator for the containing form, or get the form from any other item via formItem.getForm(), and use that to get the radioGroupItem.
                        what about we have more than one radioGroupItem?

                        2.You still havent answered the question i asked.
                        if selenium can get the locator of a disabled checkBox, how come it can not get the locator of a disabled radiogroup.
                        And that is the FOURTH time i ask, if you guys can spend some time to investigate why the behavior is different, that will be very appreciate.

                        3.The reason why i said the metadata is very complex is because that i am not QA and i dont know the logic of their test scripts. But do not say i need to understand my softerware well enough!

                        thank you

                        Comment


                          #13
                          If you have more than radioGroupItem, you'll need a way to distinguish then. SmartClient allows you to specify both a name and an ID to make this easy.

                          Yes, we have also answered your question about disabled radiogroups 3 times :) If it was not clear before: we do not plan to investigate this. It is not considered a flaw that nothing is recorded for an interaction with a disabled component. This does not prevent you from getting a locator for it by looking at it when it's enabled, nor does it prevent you from accessing it via JavaScript.
                          Last edited by Isomorphic; 19 Jan 2011, 12:50.

                          Comment

                          Working...
                          X