Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
你好 Selenium IDE 朋友们,
如果某个值与模式1 或模式2 匹配,则必须通过 Selenium IDE 进行测试。在 PHP 中,我会写:
if($value1 == $pattern1 or $value1 == $pattern2) { echo "match"; }
有谁知道,如何在 Selenium IDE 中这样做:
您可以使用以下正则表达式模式:
regexp:(${pattern1}|${pattern2})
硒源:
<tr> <td>verifyTextPresent</td> <td>regexp:(${pattern1}|${pattern2})</td> <td></td> </tr>