Announcement

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

    Selenium IDE records wrong scLocators

    Hi,
    I'm trying selenium IDE in firefox with SC user extensions and I have problem to correctly record some actions. After click on some widgets, the recorder start returning constantly the same value of scLocator.

    For example:
    1. Navigate firefox to URL:
    http://www.smartclient.com/smartgwt/showcase/#main

    2. Start Selenium IDE plugin and start recording

    3. Click on the Tab "Home".
    It correctly records "scLocator=//TabSet[ID="isc_TabSet_0"] ..."

    4. Click on arbitrary node in the TreeGrid on the left side (for example "MasterDetail") and it correctly records
    "scLocator=//TreeGrid[ID="isc_SideNavTree_0"]/body/row[nodeTitle=Master..."

    5. But if you now click again on the "home" tab or any other widget the selenium IDE always record click with "scLocator=//TreeGrid[ID="isc_SideNavTree_0"]/body/row[nodeTitle=Master..."

    #2
    Only use the Selenium IDE extensions with the version of SmartGWT they came with. If you're testing the online Showcase with something you downloaded from the SDK, it's impossible for the version to match - instead, try the Showcase and extensions from the latest patched build.

    Comment


      #3
      We have the same issue only on Firefox 20.0.1. See cases below.

      --------------------------------------------------------------------------------------------------------------------------------------------------------------------
      - Tested with LGPL Nightly build from 16.04.2013
      - Mozzila Firefox 20.0.1
      - Selenium IDE 1.10.0
      - OPTIONS RESETED IN SELENIUM IDE - using user_extensions.js and user_extensions_ide.js from 16.04.2013
      --------------------------------------------------------------------------------------------------------------------------------------------------------------------
      1. Click on Nested Grid in the left Menu:
      scLocator=//autoID[Class=VLayout||index=0||length=1||classIndex=0||classLength=1]/member[Class=HLayout||index=1||length=2||classIndex=0||classLength=1]/member[Class=VLayout||index=0||length=2||classIndex=0||classLength=1]/member[Class=TreeGrid||index=0||length=1||classIndex=0||classLength=1||roleIndex=0||roleLength=1||scRole=tree]/body/row[nodeTitle=Nested%20Grid||5]/col[fieldName=nodeTitle||0]

      2. Click on Office Paper products Expand icon in the grid:
      scLocator=//autoID[Class=VLayout||index=0||length=1||classIndex=0||classLength=1]/member[Class=HLayout||index=1||length=2||classIndex=0||classLength=1]/member[Class=VLayout||index=0||length=2||classIndex=0||classLength=1]/member[Class=TreeGrid||index=0||length=1||classIndex=0||classLength=1||roleIndex=0||roleLength=1||scRole=tree]/body/row[nodeTitle=Nested%20Grid||5]/col[fieldName=nodeTitle||0]

      3. Click on the Home tab:
      scLocator=//autoID[Class=VLayout||index=0||length=1||classIndex=0||classLength=1]/member[Class=HLayout||index=1||length=2||classIndex=0||classLength=1]/member[Class=VLayout||index=0||length=2||classIndex=0||classLength=1]/member[Class=TreeGrid||index=0||length=1||classIndex=0||classLength=1||roleIndex=0||roleLength=1||scRole=tree]/body/row[nodeTitle=Nested%20Grid||5]/col[fieldName=nodeTitle||0]
      --------------------------------------------------------------------------------------------------------------------------------------------------------------------


      --------------------------------------------------------------------------------------------------------------------------------------------------------------------
      - Tested with LGPL Nightly build from 16.04.2013
      - Mozzila Firefox 19.0.2 (Portable)
      - Selenium IDE 1.10.0
      - OPTIONS RESETED IN SELENIUM IDE - using user_extensions.js and user_extensions_ide.js from 16.04.2013
      --------------------------------------------------------------------------------------------------------------------------------------------------------------------
      1. Click on Nested Grid in the left Menu:
      scLocator=//autoID[Class=VLayout||index=0||length=1||classIndex=0||classLength=1]/member[Class=HLayout||index=1||length=2||classIndex=0||classLength=1]/member[Class=VLayout||index=0||length=2||classIndex=0||classLength=1]/member[Class=TreeGrid||index=0||length=1||classIndex=0||classLength=1||roleIndex=0||roleLength=1||scRole=tree]/body/row[nodeTitle=Nested%20Grid||5]/col[fieldName=nodeTitle||0]

      2. Click on Office Paper products Expand icon in the grid:
      scLocator=//autoID[Class=VLayout||index=0||length=1||classIndex=0||classLength=1]/member[Class=HLayout||index=1||length=2||classIndex=0||classLength=1]/member[Class=Canvas||index=1||length=2||classIndex=0||classLength=1]/child[Class=TabSet||index=0||length=1||classIndex=0||classLength=1]/paneContainer/member[Class=VLayout||index=1||length=2||classIndex=0||classLength=1]/member[Class=HLayout||index=1||length=2||classIndex=0||classLength=1]/member[Class=HLayout||index=0||length=2||classIndex=0||classLength=1]/member[Class=ListGrid||index=0||length=1||classIndex=0||classLength=1||roleIndex=0||roleLength=1||scRole=list]/body/row[categoryName=Office%20Paper%20Products||0]/col[fieldName=%2472v||0]

      3. Click on the Home tab:
      scLocator=//autoID[Class=VLayout||index=0||length=1||classIndex=0||classLength=1]/member[Class=HLayout||index=1||length=2||classIndex=0||classLength=1]/member[Class=Canvas||index=1||length=2||classIndex=0||classLength=1]/child[Class=TabSet||index=0||length=1||classIndex=0||classLength=1]/tab[ID=isc_Tab_0||title=Home%26nbsp%3B%26nbsp%3B||index=0]/
      --------------------------------------------------------------------------------------------------------------------------------------------------------------------

      Comment


        #4
        We have confirmed that there seems to be an issue with FF20 and we're looking into it.

        Comment


          #5
          We've debugged this and isolated it to an issue with Selenium IDE. Selenium IDE technically supports up to FF17 - we would recommend downgrading to 17ESR until there is an update to Selenium IDE.

          Comment


            #6
            I am having the same error that you...

            Hi! I am working with Selenium, I am new with this tool and I am having so many errors trying to test in the smartgwt showcase, and I don't know what else to do. I found your problem and is the same that one of the errors that I am having. I am testing with the Showcase and extensions from the latest patched build, so that's not my problem, could you please give some help? I really appreciate it...Thanks in advance.

            Originally posted by navrkal.pavel View Post
            Hi,
            I'm trying selenium IDE in firefox with SC user extensions and I have problem to correctly record some actions. After click on some widgets, the recorder start returning constantly the same value of scLocator.

            For example:
            1. Navigate firefox to URL:
            http://www.smartclient.com/smartgwt/showcase/#main

            2. Start Selenium IDE plugin and start recording

            3. Click on the Tab "Home".
            It correctly records "scLocator=//TabSet[ID="isc_TabSet_0"] ..."

            4. Click on arbitrary node in the TreeGrid on the left side (for example "MasterDetail") and it correctly records
            "scLocator=//TreeGrid[ID="isc_SideNavTree_0"]/body/row[nodeTitle=Master..."

            5. But if you now click again on the "home" tab or any other widget the selenium IDE always record click with "scLocator=//TreeGrid[ID="isc_SideNavTree_0"]/body/row[nodeTitle=Master..."
            Last edited by suamy88; 22 Aug 2013, 06:33.

            Comment


              #7
              Problems with smartgwt showcase

              Hi! I am working with Selenium, I am new with this tool and I am having so many errors trying to test in the smartgwt showcase, and I don't know what else to do.
              My problem is that when I click in the treeGrid at the left and then I try to click in some other widget, Selenium doesn't recognize that. Is like Selenium doesn't get it, any click is like I was clicking in the tree. Also I am having problem with select widget, in general is all a mess.
              I am testing with the Showcase and extensions from the latest patched build, so that's not my problem, I am using FF 22.0, could you please give some help? I am so desperate and I really appreciate your help...Thanks in advance. :(

              Originally posted by Isomorphic View Post
              We've debugged this and isolated it to an issue with Selenium IDE. Selenium IDE technically supports up to FF17 - we would recommend downgrading to 17ESR until there is an update to Selenium IDE.

              Comment


                #8
                The issue with FF20+ where it will start picking up the wrong locator in some cases (e.g. after clicking on the navigation tree to the left in the Feature Explorer) was fixed very recently. Try today's daily build.

                Comment


                  #9
                  Selenium IDE records wrong scLocators after new Deployment

                  Hi
                  I am Software Tester and try to test an application which is developed with smart Google GWT.
                  I use Firefox Browser 30.0 and Selenium IDE 2.5.0

                  The Developers use:
                  1) SmartClient_v91p_2014-06-26_Pro and smartgwtpro-4.1p Nightly Build from day “X-1”
                  2) The smartgwtpro-4.1p Nightly Build from 09.07.2014 was integrated on day “X” in the Deployments.
                  3) GWT SDK 2.5.1

                  Before day “X” I was able to record with Selenium IDE the scLocator. Example for an drop Down Element
                  Code:
                  By Example = ByScLocator.scLocator("//VLayout[ID=\"gridform_PersonExamplePanel_Person_ID\"]"
                  + "/member[Class=DynamicForm||index=0||length=2||classIndex=0||classLength=1]"
                  + "/item[name=erwerbssituationId||title=Example||value=Y||index=13||Class=SelectItem]"
                  + "/pickList/body/row[id=F||bezeichnungSprachabhaengigMitId=F%20Ungk%FCndigt||0]"
                  + "/col[fieldName=LanguageMitId||0]");
                  After day “X” Selenium IDE records always the same wrong not scLocator.
                  Q: Is there any other tool for extracting an scLocator?
                  Q: Which version of Selenium IDE I should use?
                  ------------------------
                  Second Try. Now I use the Selenium IDE extensions with the version of SmartGWT they came with.
                  And I must restart Selenium IDE and restart all. Then all works fine.
                  ** problem is solved **
                  Last edited by kthevessen2; 18 Jul 2014, 03:34. Reason: add important info

                  Comment

                  Working...
                  X