Announcement

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

    Unrecognised locator type: 'sclocator'

    Hey guys,
    I'm using smartgwt 2.2 and want to do automation tests for the UI with selenium IDE. So I managed to create a testSuite with Selenium IDE 1.0.10 using the smartgwt user-extensions.js and user-extensions-ide.js and it works just fine.

    The problem I have is when integrating the tests in an automation solution. For that I use the selenium-server-standalone-2.0b3.jar and the command line is

    java -jar selenium-server-standalone-2.0b3.jar -multiwindow -userExtensions user-extensions.js -htmlSuite "*firefox" "host" "C:\SeleniumTests\test.html" "C:\SeleniumTests\results.html"

    And it starts just fine it opens my page and then when clicking the username field (identified by the scLocator from below)

    scLocator=//DynamicForm[ID="isc_DynamicForm_0"]/item[name=isc_casTextItem_0||title=Username||index=0||Class=TextItem]/element

    it gives the following error:

    # error(1302767599070): Unrecognised locator type: 'sclocator'
    # warn(1302767599073): currentTest.recordFailure: Unrecognised locator type: 'sclocator'

    what I'm doing wrong ? could someone help please ?

    Thanks

    #2
    I am able to create a test case using the Selenium IDE v 1.0.10 and run it successfully manually/in the Firefox browser. But when running it from an automated setup (in my case, running it as a jUnit4 test inside Eclipse, I see the exact same thing in the console:

    17:32:21.880 INFO - Command request: isElementPresent[scLocator=//DynamicForm[ID="isc_IpLoginWindow_1_0"]/item[name=isc_SelectItem_0||title=Environment||value=iptsfilz||index=2||Class=SelectItem]/textbox, ] on session 6c592747cf6641bd9b08a15f0c7a303b
    17:32:21.897 INFO - Got result: ERROR: Unrecognised locator type: 'sclocator' on session 6c592747cf6641bd9b08a15f0c7a303b

    Did you ever find out what was causing thing? Anyone at Isomorphic know what the deal is?

    Thanks in advance,

    - Edward

    Comment


      #3
      user-extensions.js is not loading. Either you didn't attempt to load it at all, or it's not being found (wrong directory or similar).

      Comment

      Working...
      X