Selenium IDE正则表达式给出错误“;在参数列表“后引发异常:缺少);
在我的测试用例中,我试图从当前网页的url中捕获动态状态id 我的Selenium IDE代码是:Selenium IDE正则表达式给出错误“;在参数列表“后引发异常:缺少);,selenium,Selenium,在我的测试用例中,我试图从当前网页的url中捕获动态状态id 我的Selenium IDE代码是: storeLocation | myLocation echo | ${myLocation} myLocation returns https://stage.abcx.com/ui/States/ManageTitle.ddx? action=view&stateid=76702 storeEval | re=/^sid/;re.exec(${myLocation})
storeLocation | myLocation
echo | ${myLocation}
myLocation returns https://stage.abcx.com/ui/States/ManageTitle.ddx? action=view&stateid=76702
storeEval | re=/^sid/;re.exec(${myLocation}) | new
echo | ${new}
我经常犯的错误是
[错误]在参数列表后引发异常:缺少)
我在网上搜索了一下,想找出我的代码有什么问题,但没能找出问题所在
我是Selenium和regex的新手,如有任何帮助,我将不胜感激。
谢谢 您可以尝试替换
storeEval | re=/^sid/;re.exec(${myLocation}) | new
与:
new
将包含myLocation
中的所有最后数字。可以找到有关${x}和storedVars['x']之间差异的一些信息。您可以尝试替换
storeEval | re=/^sid/;re.exec(${myLocation}) | new
与:
new
将包含myLocation
中的所有最后数字。可以找到有关${x}和storedVars['x']之间差异的一些信息