mardi 2 août 2016

When getInnerHtml() method should be used?

In Protractor, there is getInnerHtml() method available on an ElementFinder instance:

var elm = element(by.id("myid"));
expect(elm.getInnerHtml()).toEqual("test");

I don't see it documented in the API list though.

Are there use cases when getInnerHtml() should be preferred instead of getText()?

Aucun commentaire:

Enregistrer un commentaire