如何在新的 Selenium 中使用字符串函数(子字符串)IDE

How to use string functions (substring) in the new Selenium IDE

我有文字"Welcome to the Automation World"。现在我想使用执行脚本从新 Selenium IDE 录制和播放的主字符串中提取单词 "Automation",但无法正常工作。有人可以帮我举个例子吗..在此先感谢。

执行脚本 | return ${var}.substring().. 像这样

我使用此代码将字符串变量 'text' 的子字符串存储到 'subs' 变量

execute Script | var str = ${text}; return(str.substring(15,25)); | subs