18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

Enhancement request: support for sc_locators

michael01612michael01612 Members
edited November -1 in Sahi - Open Source
I would like to make an enhancement request for Sahi to support sc_locators.

Use-case: our application uses smartGWT, and having the ability to identify UI elements using sc_locators can be a very deterministic approach to identifying UI elements. Ideally, we would like the sc_locator to appear as an "alternative" in the Sahi Dashboard.

To facilitate your investigation, I have made our application available at:

h t t p : / / ec2-50-17-151-217.compute-1.amazonaws.com:7080/coregui

To have the application provide sc_locators, just add this to the URL:

"?enableLocators=true"

Thank you,

Michael Foley

Comments

  • Fyi, the Selenium extensions that add scLocator support to Selenium are
    actually included in the SmartClient and SmartGWT distributions. In the
    SmartGWT dist, they're under the selenium subdirectory.

    user-guide.html - html doc that explains how scLocators work
    user-extensions.js - selenium server extensions
    user-extensions-ide.js - selenium IDE extensions
  • One benefit of support for sc_locators is that it would allow for Sahi to perform testing of i18n'ed
    applications easier because now they can use scLocators and not be
    forced to use text/labels (which would change during localization) or other non-determinitive factors.
  • narayannarayan Administrators
    Sure Michael, we will look into this and get back to you tomorrow.
  • Thank you Narayan! We are really enjoying Sahi in testing our application (which was difficult to test with Selenium). The ability to use sc_locators to identify UI elements will really help us move forward!

    Thanks again!

    Michael Foley
    Principal QE Engineer/QE Lead
    Red Hat
  • Is there an update on this? Our company has several SmartGWT applications we would like to use Sahi. The only thing that is getting in the way right now is not being able to get to the ids we set in the SmartGWT source files. We are forced to either go with another tool that can get to these ids or write more brittle tests which are difficult to record.

    We really appreciate any help on this!
Sign In or Register to comment.