问题

有可能使用或条件验证内部文本吗?

  • 2023年7月21日
  • 2回答
  • 6的观点

Userlevel 3
徽章 + 2
  • 社区负责人
  • 16日回复

你好,

我有问题,我想验证一个InnerText结果(字符串),可以实现两种可能的回答是正确的。有办法我们或条件验证内部文本吗?

谢谢你!


2回答

Userlevel 3
徽章 + 2

例如,你可以使用一个正则表达式。

{REGEX (“value1 | value2”)}

Userlevel 3
徽章 + 2

你可以缓冲innertext值,然后使用TBox评估使用和/或条件来验证缓存值

回复


Learn more about our cookies.<\/a>","cookiepolicy.button":"Accept cookies","cookiepolicy.button.deny":"Deny all","cookiepolicy.link":"Cookie settings","cookiepolicy.modal.title":"Cookie settings","cookiepolicy.modal.content":"We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.<\/a>","cookiepolicy.modal.level1":"Basic
Functional","cookiepolicy.modal.level2":"Normal
Functional + analytics","cookiepolicy.modal.level3":"Complete
Functional + analytics + social media + embedded videos"}}}">
Baidu
map