Protractor text test with link -
i wondering how able test text using protractor when part of text contains link separate page.
is there way expand link , raw text expect that?
should use similar to:
expect(mytext).tocontain("some text <a href="..."")
thanks
if text link, can use following locator same
expect(element(by.linktext('google')).gettagname()).tobe('a');
this in case when link in dom
<a href="http://www.google.com">google</a>
Comments
Post a Comment