angular / protractor-accessibility-plugin

Runs a set of accessibility audits
MIT License
266 stars 37 forks source link

getOuterHtml() has been deprecated, and that issue was fixed in this repo, but the change was not published to NPM. #35

Open guillermosnipe opened 5 years ago

guillermosnipe commented 5 years ago

I'm running some protractor e2e tests, and I'm getting errors like: [16:43:19] E/plugins - TypeError: elem.getOuterHtml is not a function

This is caused because the module still uses thee deprecated getOuterHtml() method. This issue was fixed in this repo, getOuterHtml was removed and replaced correctly by getAttribute("outerHTML"), but this change was not published. The latest version is 0.3.0, dated 2 years ago.

https://github.com/angular/protractor-accessibility-plugin/blob/d0cca1876d6e829d882b6b885e9b7e80318f68d5/index.js#L181

It would be from great help if you publish the latest code. Thanks a lot in advance.

trinajoy commented 4 years ago

I am experiencing the same error. Any update on this issue?

E/plugins -         Failure during teardown: elem.getOuterHtml is not a function
E/plugins -         TypeError: elem.getOuterHtml is not a function
    "protractor": "^5.4.2",
    "protractor-accessibility-plugin": "^0.3.0",