質問

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