Question

Hello Selenium IDE Friends,

if have to test by Selenium IDE if a value matches either pattern1 OR pattern2. In PHP i would write:

if($value1 == $pattern1 or $value1 == $pattern2)
{
echo "match";
}

Does anyone know, how to do this in Selenium IDE like this:

enter image description here

Était-ce utile?

La solution

You can use the following regex pattern:

regexp:(${pattern1}|${pattern2})

Selenium source:

<tr>
    <td>verifyTextPresent</td>
    <td>regexp:(${pattern1}|${pattern2})</td>
    <td></td>
</tr>
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top