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
Contrived example, but hopefully it's enough to illustrate the problem.
This works just fine:
element.all(by.tagName("someTag")).count().then((num) => { browser.refresh().then(() => { var elemsAfterRefresh: protractor.ElementArrayFinder = element.all(by.tagName("someTag")); elemsAfterRefresh.count().then((count) => { console.log(count); expect(num).toMatch(count); }); }); });
This fails with the out of memory exception:
element.all(by.tagName("someTag")).count().then((num) => { browser.refresh().then(() => { var elemsAfterRefresh: protractor.ElementArrayFinder = element.all(by.tagName("someTag")); elemsAfterRefresh.count().then((count) => { console.log(count); }); expect(num).toMatch(elemsAfterRefresh.count()); }); });
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory
It appears that something is wrong inside of expect() while evaluating the count() promise.
expect()
count()
The text was updated successfully, but these errors were encountered:
Can I see your config file? I suspect this is a problem with jasmine 1.x
Sorry, something went wrong.
Forgot to mention I am not using Selenium, but connecting directly to the Chrome drivers. Let me know if you need any further info!
var HtmlReporter = require('protractor-html-screenshot-reporter'); exports.config = { capabilities: { 'browserName': 'chrome' }, directConnect: true, allScriptsTimeout: 25000, jasmineNodeOpts: { showColors: true }, onPrepare: function () { var params = browser.params; jasmine.getEnv().addReporter(new HtmlReporter({ baseDirectory: params.results_folder, takeScreenShotsOnlyForFailedSpecs: true })); browser.driver.manage().window().maximize(); ... some more app-specific code to log-in, shouldn't affect protractor at all ... } }
Yeah, you're using jasmine 1.x. I suspect this is your problem: angular/jasminewd#35
Upgrading to jasmine 2.x would solve your problem, if that's feasible
No branches or pull requests
Contrived example, but hopefully it's enough to illustrate the problem.
This works just fine:
This fails with the out of memory exception:
It appears that something is wrong inside of
expect()
while evaluating thecount()
promise.The text was updated successfully, but these errors were encountered: