Member-only story

Protractor, another Automation Framework I rightly avoided, is being Deprecated

Expensive lessons learnt for teams that do not use W3C compliant Selenium WebDriver.

Zhimin Zhan
5 min readAug 13, 2021

Non-Medium-Members: you can view this article free on Vocal Media.

This article is one of the “Be aware of Fake Test Automation/DevOps Engineers” series.

Protractor, a JavaScript-based end-to-end test automation framework, became quite popular a few years back with the rising of AngularJS. I did a quick review of Protractor and disliked it.

The official news came in April 2021: Protractor is being deprecated. While I feel sorry for the teams that have invested a lot of effort in Protractor, my advice is to convert them into raw Selenium WebDriver with RSpec.

As a developer who worked on free and open-source software, I have respect and sympathy for Protractor developers.

“Deprecating Protractor is not a decision that is taken lightly by the team.”

It is a shame that Protractor developers chose the wrong language (JavaScript) and lacked the right mindset: they thought they were making Selenium syntax easier. However, it ended up with the opposite effect.

They should have known that the right approach is to use raw Selenium WebDriver in a good scripting language such as Ruby, with Maintainable Automated Test Design.

Selenium WebDriver find_element syntax was created by the W3C experts. It balances flexibility, readability, learning-ability and other attributes perfectly. Unfortunately, some engineers do not understand that. They created another layer of ‘better’ syntax, which actually made it much worse.

“Everything should be made as simple as possible, but no simpler.” — Albert Einstein

Let me share a story about Protractor. Several years ago, A company contacted me for help in implementing test automation. A manager there saw my work before and recommended me to his company.

During the meeting, the tech lead stated that they had started test automation using Protractor. Obviously, they faced some challenges or choices and wanted my opinion. I gave out the suggestion directly…

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Zhimin Zhan
Zhimin Zhan

Written by Zhimin Zhan

Test automation & CT coach, author, speaker and award-winning software developer. Help teams succeed with Agile/DevOps by implementing real Continuous Testing.

Responses (1)

Write a response