User extensions not working


I have added user extension js to my katalon IDE. Restarted the IDE, added new command. In command my custom js method name is not populating as expected. any clues?

Sample method

Selenium.prototype.getTextLength = function(locator) {
return this.getText(locator).length;

Did you refresh the page? It’s nessasary to work.
You can’t use command “getTextLength” but “storeTextLength” so it’s should look something like this:

command | target | value
storeTextLength | //*[@id=“suggested-topics”]/h3[1] | textlength