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

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -