Updated method to take advantage of changes in protractor 1.3.1...