question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Chrome 91 will break more Protractor tests

See original GitHub issue

Bug report

  • Node Version: 14.17.0
  • Protractor Version: 7.0.0
  • Browser(s): Chrome v91
  • Operating System and Version Windows 10

The issue started to reproduce with the release of chromedriver v91. https://bugs.chromium.org/p/chromium/issues/detail?id=1205107&start=300

Method getAttribute will always return null within usage of older JWP (w3c: false). From another side, with the w3c: true on legacy Selenium 3 - browser actions are not working due to incompatibility.

So the recommendation is to upgrade with selenium-webdriver 4.0 where full support of w3c implemented.

I have added a PR where made upgrades with the latest selenium 4.0

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:37
  • Comments:17 (3 by maintainers)

github_iconTop GitHub Comments

10reactions
hugodescommented, Jun 3, 2021

I can also confirm. I know this is just saying +1, but if we could get the attention of some of the Angular team, it’d be great. Our whole CI/CD pipline is in shatters because of this.

6reactions
matjohcommented, Jun 3, 2021

The last chromedriver that worked with getAttribute("value") was version 90.0.4430.24.

Until chromedriver gets patched (which seems like it will be according to this thread posted by @StanislavKharchenko) we use this fix in our ci pipeline to use that version run our angular protractor tests.

This is what out pipline looked like before:

Setup:
    npm install
    node ./node_modules/.bin/webdriver-manager update
Script:
    ng e2e --protractorConfig=./path/to/protractor/config.js

This is what it looks like after:

Setup:
    npm install
    node ./node_modules/.bin/webdriver-manager update --versions.chrome=90.0.4430.24
Script:
    ng e2e --protractorConfig=./path/to/protractor/config.js --webdriver-update false

Good luck!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chrome 91 might break your tests - Jan Molak
The first option is for you to avoid using Chrome / ChromeDriver 91 with Selenium Webdriver 3.x until the fix is available and...
Read more >
protractor issue after update chromium version - Stack Overflow
This is an issue with ChromeDriver 91, first reported in the Chromium bug tracker on May 3rd 2021. I've described the problem and...
Read more >
Protractor tests fail after updating to chrome/chromedriver 88
Has anyone encounter the issue where updating to Chrome browser 88 causes all Protractor e2e tests to fail if the test system is...
Read more >
Downloads - ChromeDriver - WebDriver for Chrome
Supports Chrome version 91. Resolved issue 1205107: Unable to get attribute value for fields on the web application. For more details, please see...
Read more >
protractor | Yarn - Package Manager
To learn more and find out about other options please refer to this post on the ... Protractor is an end-to-end test framework...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found