Announcement

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

    Selenium IDE + Masked form

    Hello

    Running Selenium IDE 2.4 and SmartClient v9.0.

    This simple example from the Feature Explorer does not work with Selenium performing just a simple test case. If you remove the masks it records correctly. Why? Is this an issue with SmartClient and Selenium with masks?

    Code:
    isc.DynamicForm.create({
        ID: "contactForm",
        width: 400,
        fields: [
            { name: "firstName", title: "First name", type: "text",
              mask: ">?<??????????????", hint: "&gt;?&lt;??????????????"},
            { name: "lastName", title: "Last name", type: "text",
              mask: ">?<??????????????", hint: "&gt;?&lt;??????????????"},
            { name: "state", title: "State", type: "text",
              mask: ">LL", hint: "&gt;LL"},
            { name: "phoneNo", title: "Phone no", type: "text",
              mask: "(###) ###-####", hint: "(###)&nbsp;###-####", showHintInField: true}
        ]
    });
    Thank you in advance.

    Steven

    #2
    Please clarify "does not work with Selenium".

    Comment


      #3
      You will see when you try it that the fields do not get recorded. Selenium does not capture the input within the IDE when recording.

      Many thanks

      Steven

      Comment


        #4
        Again, need you to be more specific.

        1. Are you loading SmartClient's IDE extensions or not?

        2. Are you using the latest patched build of 9.1? If not, you should be

        3. What specific keystrokes are you having trouble recording?

        4. Are you seeing a complete lack of recorded commands, non-functional commands, or something else?

        Comment


          #5
          Hello.

          1. Yes user-extensions.js and user-extensions-ide.js are loaded. All Selenium options are default.

          2. Yes I am now using the latest release of 9.1. 27th of March.

          3. Basically all keystrokes are not being recorded. For example if you simply go to http://www.smartclient.com/#maskedTextItem and try recording within the IDE Selenium picks up the first click inside the First name field, when you tab down to the next field Selenium picks up nothing. It does not capture any keystrokes.

          4. As above. Nothing get's recorded.

          Hope that helps.

          Comment


            #6
            We've never officially supported capturing keystrokes automatically with our user extensions. However, we've just exposed as user-visible and experimental, an internal feature that that does permit capturing of visible (non-navigation) keystrokes typed at a masked text field and navigation keystrokes (arrow keys, tab, etc.) between records/fields of a ListGrid.

            This feature is known to have issues with non-Firefox browsers and may not work perfectly with all widgets. The documentation has been updated and the revised user extensions will be in the next nightly builds for SC 10.0d/9.1p.
            Last edited by Isomorphic; 28 Mar 2014, 16:23.

            Comment


              #7
              Hello. Yes I have followed your steps and updated to the latest release and this now works much better, although, Selenium is not picking up recordClick events on the list grid. Is this also a known issue?

              Regards

              Steven

              Comment


                #8
                No, not a known issue. We have hundreds of tests that rely on receiving clicks in grids, so this must be something special about your environment.

                Comment

                Working...
                X