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
    ~ 10 years ago

    oh my gosh this just blew my mind. Thank you

    +1 to your theme too

    Evan Gillogley
    ~ 9 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
    ~ 9 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
    ~ 9 years ago

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

    Balaji
    ~ 9 years ago

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

    Spokeo
    ~ 9 years ago

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

    Zeeshan
    ~ 8 years ago

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