Hello:
I would like to do this in the Selenium IDE.
I would like to remove the double quotes from a string variable.
I have established the variable testKeyword.
<tr>
<td>store</td>
<td>javascript{storedVars.metaTags[storedVars.index]}</td>
<td>testKeyword
</td>
example: testKeyword = "child"
-------------------------------------------------------------------------------------------------------------------------
I would like to remove the double quotes from the string in the testKeyword variable.
-------------------------------------------------------------------------------------------------------------------------
I have tried several replace scripts:
<tr>
<td>store</td>
<td>javascript{storedVars.testKeyword.replace('"','')}</td>
<td>testKeywordwoQuotes</td>
</tr>
<tr>
<td>runScript</td>
<td>javascript{storedVars.testKeyword.replace('"','')}</td>
<td>testKeywordwoQuotes</td>
</tr>
<tr>
<td>storeEval</td>
<td>javascript{storedVars.testKeyword.replace('"','')}</td>
<td>testKeywordwoQuotes</td>
</tr>
<tr>
<td>storeExpression</td>
<td>javascript{storedVars.testKeyword.replace('"','')}</td>
<td>testKeywordwoQuotes</td>
</tr>
None of these code examples are removing the double quotes from the variable.
Any help would be appreciated with removing the double quotes from a variable.
Thanks