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>

source: software automata - protractor – locators


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -