Announcement

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

    [Selenium] IDE problem identifying extension-escaped forward slashes in scLocater

    SmartGWT 2.2, Firefox 3.6.8, IE 8.0, Selenium-RC 1.0.3 (SmartClient 2.2 JavaScript extensions only), Java 1.6.0_19

    Hello,

    I've noticed a problem with the way the SmartClient [IDE] extensions escape the forward slash character ("/") when recording compared to what works during playback. When recording object interaction in the IDE, the SmartClient extension replaces instances of forward slashes with:
    %24fs%24
    in the scLocator string.

    So, an interaction with an image named: "USA/50" would be identified like this using the extension:
    Code:
    scLocator=//ListGrid[ID="isc_ListGrid_0"]/body/row[name=USA%24fs%2450||image=USA50.png||0]/col[fieldName=image||0]
    However, when replaying this in Selenium Remote Control, the following error is observed in the log:
    Code:
    ...INFO - Got result: ERROR: Element scLocator=//ListGrid[ID="isc_ListGrid_0"]/body/row[name=USA%24fs%24A50||image=USA50.png||0]/col[fieldName=image||0] not found on session...
    Interestingly, when I manually change SmartClient extension-generated scLocator to include the actual forward slash, instead of the %24fs%24] escape sequence, everything works fine.
    Code:
    scLocator=//ListGrid[ID="isc_ListGrid_0"]/body/row[name=USA/50||image=USA50.png||0]/col[fieldName=image||0]
    succeeds:
    Code:
    ..INFO - Got result: OK on session...
    Anyone else encounter anything similar?

    Thanks in advance,
    Nathan
    Last edited by nchristie; 21 Sep 2010, 12:18.

    #2
    Hi Nathan
    We're not reproducing this issue with a simple test case.
    This looks like something that could occur if you recorded a test with a recent version of the SmartClient/SmartGWT selenium extensions, but are playing it back with an older version.
    Can you double check that both your recording and your selenium server are looking at the same user-extensions.js file, from the latest SmartGWT build?

    (Nightly builds are available here)

    Comment


      #3
      I can confirm I am using the same version of the extensions inside my IDE configuration and the extensions I'm starting the RC server with. These are also the latest version of the extensions.

      We are using SmartGWT v2.2 in our application. I wonder if the image being inside a ListGrid cell could contribute to the problem. There are other scLocator strings that contain the %24fs%24 escape sequence and they work without issue. It seems to be this image only that requires the actual slash character in the scLocator string.

      I appreciate any legwork; however, this is a trivial issue for me, as I can just un-escape these sequences after recording and continue on. It's just strange.

      Comment


        #4
        My Selenium can't recognize the scLocator.

        It works fine with WebDriver (I have implemented some java code to make it working), but with Selenium It doesn't.

        Please what can I do to get it working?

        Selenium2 / WebDriver
        Smart GWT 2.4
        Firefox 3.6.14
        Language:Java

        Comment


          #5
          Originally posted by Badrodoja
          My Selenium can't recognize the scLocator.

          It works fine with WebDriver (I have implemented some java code to make it working), but with Selenium It doesn't.
          Hi Badrodoja,
          Could you share with us how you get it to work with WebDriver?
          Thanks

          Comment

          Working...
          X