Compare 2 Strings

Selenium.prototype.doVerifyStringsEquals = function(elementOne, elementTwo) 
{
    var arrayelements = elementOne.split(',');
    var one = arrayelements[0];
    var two = arrayelements[1];
    if(one == two) 
    {
        storedVars[ elementTwo ] = 1;
    }
    else
    {
        storedVars[ elementTwo ] = 0;
    }
};

Use it like this:

<tr>
<td>verifyEquals</td>
<td>test,test</td>
<td>t</td>
</tr>
<tr>
<td>echo</td>
<td>${t}</td>
<td></td>
</tr>

File: 

AttachmentSize
Plain text icon stringCompare.js.txt334 bytes

Type: 

User-Extension