title: How to launch javascript script and pass DOM element from java while having plain html?
body: <p>I am automating web application which uses SmartClient and now I need some robust method to build locators for forms and populate input fields. We have test framework based on Selenium and SmartClient's scLocators. Test designer provides label of the form cell he wants to fill and the cell is in the sibling DOM element. I can parse his input and current html in order to produce the desired form cell's inner html. I decided to use javascript function getLocator provided by SmartGWT:
   <a href="https://code.google.com/p/smartgwt/source/browse/trunk/main/src/com/smartclient/public/sc/system/tools/AutoTest.js?r=37" rel="nofollow">https://code.google.com/p/smartgwt/source/browse/trunk/main/src/com/smartclient/public/sc/system/tools/AutoTest.js?r=37</a>
  as I have seen it working well in SC extension for Selenium IDE. How to create DOMElement required by this function and execute this javascript code?</p>