最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

webdriver io - element not clickable after element.waitForClickable() returns - Stack Overflow

programmeradmin1浏览0评论

running on windows 11 via git bash shell in visual studio code using:

    "@wdio/cli": "^9.7.1",
    "@wdio/devtools-service": "^8.41.0",
    "@wdio/jasmine-framework": "^9.7.1",
    "@wdio/junit-reporter": "^9.6.3",
    "@wdio/local-runner": "^9.7.1",
    "@wdio/spec-reporter": "^9.6.3",
    "@wdio/types": "^9.6.3",

would you not expect the element, an input of type checkbox, to be clickable after waitForClickable returns?

    await titleTabs[index].click();

    titleTabs[index].waitForClickable();

    const isClickable = await titleTabs[index].isClickable();

    await thismonLogging.log(`is clickable: ${isClickable}`);

I keep getting:

is clickable: false

also, the reason I started messing around with this is that isSelected was returning false when the checkbox was not selected as seen when running the browser without headless mode.

much appreciated

发布评论

评论列表(0)

  1. 暂无评论