Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Cannot read property 'bind' of undefined when using ExpectedConditions on browser.driver.findElement #1853

@mgol

Description

@mgol

The following code:

describe('Locale syncing from GUI to Accounts', function () {
    it('should change the interface to English', function () {
        const properTextPresent = EC.textToBePresentInElement(
            browser.driver.findElements(by.css('label[for="id_password_verification"]')), 'Password');
    });
});

triggers an error:

1) Locale syncing from GUI to Accounts should change the interface to English
  Message:
    Failed: Cannot read property 'bind' of undefined
  Stack:
    Error: Failed: Cannot read property 'bind' of undefined
        at /Users/mgol/Documents/projects/bn/cbn/repo/polona-gui/node_modules/protractor/node_modules/jasminewd2/index.js:104:16
        at /Users/mgol/Documents/projects/bn/cbn/repo/polona-gui/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/base.js:1582:15
        at [object Object].webdriver.promise.ControlFlow.runInNewFrame_ (/Users/mgol/Documents/projects/bn/cbn/repo/polona-gui/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:1654:20)
        at notify (/Users/mgol/Documents/projects/bn/cbn/repo/polona-gui/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:465:12)

in Protractor 1.7.0 (tested on io.js 1.3.0 & Node 0.12.0 with Jasmine 2).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions