문제

I am using selenium IDE and i want to store a data:

storeEval | storedVars['varRate'].match(/EUR.\d+.\d+/); |rate01
echo |${rate01}     
storeEval |storedVars['rate01'].match(/\d+.\d/);|rate

The first one works just fine but second one throws an exception:

[error] Threw an exception: storedVars.rate.match is not a function

Can you please help me? Thank you.

도움이 되었습니까?

해결책

The problem was that match is a string method and I didn't use it correctly. First result was an array so i added another comand to cast it to string: store | ${rate01} | rate02 followed by storeEval | storedVars['rate02'].match(/\d+.\d/);| rate

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top