question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

fillField returns `unknown error: call function result missing 'value'`

See original GitHub issue

Someone already created a similar ticket on SO (https://stackoverflow.com/questions/49175711/q-codeceptjs-unknown-error-call-function-result-missing-value), but there hasn’t been a response, so I’m submitting the issue here as well.

Anytime the WebdriverIO fillField method is used, it errors out with unknown error: call function result missing 'value'. I copied the relevant function in my test and the config file below

loginWith(email, password) {
    I.say(`login with ${email} / ${password}`);
    I.fillField(this.fields.email, email);
    I.fillField(this.fields.password, password);
    I.click(this.submitButton);
}

Details

  • CodeceptJS version: 1.0.2
  • NodeJS Version: 8.7.0
  • Operating System: macOS 10.12.6
  • WebDriverIO version: 4.8.0
  • Configuration file:
module.exports.config = {
  output: './output',
  helpers: {
    WebDriverIO: {
      host: process.env.SELENIUM_HOST || "127.0.0.1",
      port: process.env.SELENIUM_PORT || 4444,
      url: process.env.APP_URL,
      coloredLogs: true,
      browser: 'chrome',
      windowSize: '1280x800',
    },
    Mochawesome: {
      uniqueScreenshotNames: false
    },
    "TabHelper": {
      "require": "./utils/codecept-tab-helper.js"
    }
  },
  include: {
    // Root Step Files
    I: './steps_file.js',

    // Page Objects
    loginPage: './pages/Login.js',
    welcomePage: './pages/Welcome.js',
    dashboardPage: './pages/Dashboard.js',
    experimentPage: './pages/Experiment.js',
    settingsPage: './pages/Settings.js',

    // Fragment Objects
    navbar: './fragments/Navbar.js',
    menuDropdown: './fragments/MenuDropdown.js',

    // Step Objects
    adminStep: './steps/Admin.js',
    goToStep: './steps/GoTo.js',

    // Util Methods
    utils: './utils/Utils.js'
  },
  mocha: {
    reporterOptions: {
      reportDir: 'output',
      reportFilename: 'report'
    }
  },
  bootstrap: './utils/static_server.js',
  teardown: './utils/static_server.js',
  hooks: [],
  tests: './tests/**/*_test.js',
  timeout: 10000,
  name: test'
};

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

4reactions
vidhyaranganathancommented, Mar 16, 2018

wdio-selenium-standalone-service -v=0.0.10 selenium-standalone -v=6.13.0 chromedriver -v=2.36.0

verify if you have these versions. This helped to solve the issue. More info: https://github.com/webdriverio/webdriverio/issues/2631#issuecomment-372875052

0reactions
reubenmillercommented, Mar 8, 2018

What chromedriver version and Selenium version are you using? It looks to be a problem with selenium and not codecept (though I might be wrong).

Read more comments on GitHub >

github_iconTop Results From Across the Web

unknown error: call function result missing 'value' - Stack ...
I was seeing the same issue. The problem only appears when using Chrome 65 (currently: dev channel). With Chrome 64 (both stable channel...
Read more >
"unknown error: call function result missing 'value'" · Issue #2631
The problem At my work, we use webdriverio with chrome. It appears that the chromedriver may be sending responses back that webdriverio ...
Read more >
org openqa selenium WebDriverException unknown error call ...
It turns out I had an old chromedriver installed. Specifically, I was using chrome=65.0.3325.51 with chromedriver=2.29.461585. Running npm ...
Read more >
unknown error: call function result missing 'value' for Selenium ...
I am getting the below error while sending keys. Result Message: System.InvalidOperationException : unknown error: call function result missing 'value'.
Read more >
Releases - CodeceptJS
Use it to perform run multiple times and detect flaky tests ... grab*From => returns single value from element or throws error when...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found