Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用 selenium IDE 存储不包括货币符号的金额值,例如我在我的网页上得到“$ 14.32”,而我只需要存储“14.32”,那么你能建议我如何存储它吗?
首先从页面中获取值。然后使用 astoreEval通过 JavaScript 函数处理该值。
storeEval
store | path/to/element | currencyAmount storeEval | parseInt(storedVars['currencyAmount'].replace('$', ''), 10) | amount