【问题标题】:Why do webdriverIO functions are not working in wdio-v7?为什么 webdriverIO 函数在 wdio-v7 中不起作用?
【发布时间】:2021-05-20 00:53:31
【问题描述】:

我刚刚使用wdio-v7 开始了一个新项目,但是webdriverIO 函数(例如:.click().waitForDisplayed())都不再工作并且我收到了

"TypeError: element.click is not a function"

【问题讨论】:

    标签: webdriver webdriver-io wdio-v6


    【解决方案1】:

    根据我的经验,当我忘记在页面文件中包含美元符号时会发生这种情况。确保它看起来像这样:

    get element() {
        return $('someId');
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-03-27
      • 2022-09-23
      • 2022-01-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多