selenium - how to use variable from runscript command -


I get some text from the web page 5,19 € 3,50 € "after" text ". I am using this command

  runscript | javascript {var values ​​= stored wars ['value']. ​​Partition ("€"); document.write (prices [0]) ; Document.write (prices [1])};  

after trying to do this command

  getEval | warning (stored Vars ['prices [ 0] '])  

The answer is that the prices are undefined What is the problem here How do I get this variable from one runcript command?

Thanks for helping me!

instead of storeEval .

  store | £ 1.99 | FullPrice Store Aval | Archived ['FullPrice'] Division ("pound") [1] | price echo | $ {value}  

Comments