admin管理员组

文章数量:1316227

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

本文标签: webdriver ioelement not clickable after elementwaitForClickable() returnsStack Overflow