Automated screenshots of your e2e Protractor tests

Share this video with your friends

Send Tweet

It can be useful to capture screenshots of your end-to-end functional tests with protractor. Because protractor tests are "just node", it is very straight forward.

Attend Product
Attend Product
~ 9 years ago

oh my gosh this just blew my mind. Thank you

+1 to your theme too

Evan Gillogley
Evan Gillogley
~ 8 years ago

This code does not work for the current protractor and jasmine. Could you provide a solution? I can't seem to get the currentSpec object to capture.

Ronnie
Ronnie
~ 8 years ago

Like Evan said, this code does not work with jasmine versions 2.0 and above (so newer versions of protractor) because they don't let you access currentSpec anymore. There are some libraries for creating screenshot reports, but the process has gotten a lot less simple.

Balaji
Balaji
~ 8 years ago

can you please add an video as how to generate an HTML reports in Protractor Automation.

Balaji
Balaji
~ 8 years ago

Can you please add an video to read data from Excel in protractor automation

Spokeo
Spokeo
~ 8 years ago

What does fs import do and how would it stop the tests from running correctly?

Zeeshan
Zeeshan
~ 8 years ago

var spec = jasmine.getEnv().currentSpec is always returning a null value.