We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm trying to access Nightmare helpers from within a custom helper I've created
Provide console output if related. Use --verbose mode for more details.
--verbose
Cannot read property '_locate' of undefined
Provide test source code if related
class DOMElements extends Helper { countElements (locator) { let value = this.helpers['Nightmare']._locate(locator).then(function (els) { return els.length }) return value } } module.exports = DOMElements
{ "tests": "./__tests__/*_test.js", "timeout": 10000, "output": "./codecept-output", "helpers": { "Nightmare": { "url": "http://localhost:3001" }, "DOMElements": { "require": "./__tests__/helpers/domelements_helper.js" } }, "include": { "I": "./__tests__/steps_file.js" }, "bootstrap": false, "mocha": {}, "name": "flickr-test" }
The text was updated successfully, but these errors were encountered:
OK apparently this has been fixed on its own. Is it possible that something is being cached somewhere??? /cc @DavertMik
Sorry, something went wrong.
No branches or pull requests
What are you trying to achieve?
I'm trying to access Nightmare helpers from within a custom helper I've created
What do you get instead?
Details
The text was updated successfully, but these errors were encountered: