无法在 Selenium Firefox 中找到该选项

Unable to find the option in Selenium Firefox

最近开始学习Selenium,在教程中有一个选项verifyTextPresent,在教程中给出如下。

Open the browser
start recording
select the text
right click on it
and there in options there is **verifyTextPresent** option

但是当我尝试做同样的事情时,我找不到这个选项。所以在我的浏览器中,我点击了 Show All Available Commands,它给了我以下选项,但找不到 verifyTextPresent 选项,请告诉我如何获得 verifyTextPresent.

但是当我点击 command 文本框时,它显示 verifyTextPresent

嗨,我可以在 IDE 中看到该命令。你能再验证一下吗?

它表示该命令已弃用,您将不得不使用 verifyText 命令。

verifyTextPresent(pattern) This command is deprecated. Use the verifyText command with an element locator instead.

您以后应该使用 VerifyText。