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 を使用して通貨記号を除いて金額の値を保存する方法 Web ページに「$ 14.32」が表示され、「14.32」のみを保存する必要があります。それを保存する方法を教えてください。
まず、ページから値を取得します。次に、を使用しstoreEvalて、JavaScript関数でその値を処理します。
storeEval
store | path/to/element | currencyAmount storeEval | parseInt(storedVars['currencyAmount'].replace('$', ''), 10) | amount