Search code examples
seleniumautomated-testse2e-testingwebdriver-iocodeceptjs

Q: CodeceptJS "unknown error": call function result missing 'value'


This is my Test

 Feature('Test');

    Scenario('test something', (I) => {

        I.amOnPage("");
        I.see("Welcome");
        I.fillField('j_username', 'xxxxxx');
        I.wait(3);
    });

This is my codeceptjs.JSON

{
  "tests": "asd/*_test.js",
  "timeout": 10000,
  "output": "./output",
  "smartwait":"1000",
  "helpers": {
    "WebDriverIO": {
      "url": "http://localhost:8080/xxxx/",
      "browser": "chrome"
    }
  },
  "include": {
    "I": "./steps_file.js"
  },
  "bootstrap": false,
  "name": "yenideneme"
}

I am try CodeceptJS with Webdriverio helper for end-to-end tests. Connect to the server and I.see("") passed. But added I.fillField() taken this Error=

test something:
unknown error: call function result missing 'value'

I try to update chrome and chromedriver but not worked.

And other project taken Error= 2) e2e "after each" hook: finalize codeceptjs for "welcome Page @fristBlank": unknown error: call function result missing 'value'

Error Pic


Solution

  • It may be related to an issue with Chrome 65. After upgrading from Chrome 64, I started seeing the same issue. Downgrading to the version 64 should help temporarily.

    A long-term solution is making sure that Chromedriver is upgraded to version 2.36, which is supposed to work with Chrome 65. However, a simple "npm install chromedriver" may not be sufficient. Your Selenium may still try to load the old version. The actual solution depends on your environment setup.