Hello, I am new to using selenium and encountering an issue with splitting a string.
<tr>
<td>storeEval</td>
<td>dList = '${StaffAdminEmail}'.split('@'); </td>
<td>dsplit1 </td>
</tr>
<tr>
<td>storeEval</td>
<td>day = storedVars.dsplit1[1]</td>
<td>dsplit2</td>
</tr>
<tr>
<td>type</td>
<td>id=school_permalink</td>
<td>${dsplit2}</td>
Here,
${StaffAdminEmail} = <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="daa9bbb7aab6bf9aa9bbb7aab6bff4b9b5b7">[email protected]</a>
Upon execution, I encountered the error:
[error] Threw an exception: storedVars.dsplit1 is undefined
After searching on Google, I found a helpful link. However, I am unsure how to apply it in my scenario. Any suggestions?