javascriptdomprotractore2e-testingangular-e2e

How to read the HTML DOM in protractor


I want to retrieve the value for our version which is stored in HTML DOM.

enter image description here

Using node.js and protractor. I don't know how to go about it.

Please provide your valuable knowledge for the same :)

I want the value 2016.R08.1.RC1


Solution

  • The simplest way is to select html by selector and get manifest property:

    element(by.css('html')).getAttribute('manifest');
    

    Then you should receive the full value of manifest property.