문제

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

도움이 되었습니까?

해결책

You can use the following regex pattern:

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

Selenium source:

<tr>
    <td>verifyTextPresent</td>
    <td>regexp:(${pattern1}|${pattern2})</td>
    <td></td>
</tr>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top