if testtext = expectedtext then
reporter.reportevent 0, "Link Check", "The Link Exists with correct Text"
reporter.reportevent 1, "Link Check","The Link Exists but with the WRONG text"
reporter.reportevent 1, "Link Check", "The Link Doesn't Exist On This Page"
The code aboce will firstly check for the existence of the link you want to check. If it exists on the page, it will then check that the text of the link matches what you expect it to be and if these are BOTH correct the test will pass. If the link does not exist, or the text is wrong, the test will fail.