if I do expect(img).not.toBe(null) then I get an error: Error: expect called with WebElement argment, expected a Promise. Did you mean to use .getText()?
expect(img).not.toBe(null)
Error: expect called with WebElement argment, expected a Promise. Did you mean to use .getText()?
Using the latest Protractor build you can shorten it down to the following:
expect(element(by.id('recaptcha_image')).isPresent()).toBe(true);