【问题标题】:Why does 'xpath is not function' Error occurs in cypress while executing code?为什么执行代码时 cypress 中会出现 \'xpath is not function\' 错误?
【发布时间】:2022-10-05 13:13:45
【问题描述】:

我正在尝试使用 VS 代码在 cypress 中使用 Xpath 函数测试网页

我在 VS 代码中完成了 xpath 插件的安装过程,并使用 '.xpath' 扩展名编写了代码。但是当我运行我的 cypress 代码时,它会显示一个错误,即“Xpath 不是函数”。我想使用 xpath 执行 cypress 代码。

任何人都可以对上述问题有任何解决方案吗?请指导我解决这个问题。

error image

【问题讨论】:

  • 我正在使用 Python 研究印度车牌模型。我从车牌上得到了完全错误的字符。例如车牌号:PB10EB2640 字符识别后:

标签: cypress


【解决方案1】:

有关完整过程,请参阅我的 @Atul Kumar Sharma 对此 SO Question 的回复。

Cypress not able to recognize Xpath function

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2022-11-05
    • 2010-10-30
    • 1970-01-01
    • 2018-08-05
    • 2016-05-20
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多