That's still a .doc file and I still can not download them (I'm behind a firewall that doesn't allow certain file types).
Anyway, I figured out the answer (I think):
Each link is done like this:
At least that's my theory, haven't tried it yet
Is there a more condensed way to do this? For several links this gets to be a long piece of code, though perhaps for my purpose it wouldn't make sense to shorten as each user (iteration) can contain different links.
edit: Previous code didn't actually solve anything and was just a rehash of what I previously did.
Anyway, I figured out the answer (I think):
Each link is done like this:
Code:
'before link these are added, where [linkname] is the term being defined for later (can be anything)
Iteration = DataTable.GlobalSheet.GetCurrentRow 'defines what Iteration is
If Browser("...").Page("...").Link("...").Exist (1) THEN [linkname] = True Else [linkname] = False End if 'Defines a link true/false for quick referene later
'now for the link
If [linkname]= True Then
If Iteration = 1 OR Iteration = 2 OR Iteration = 3 OR Iteration = 4 Then
Reporter.ReportEvent micPass, "...", "Pass"
Browser("...").Page("...").Link("...").Click
RunAction "...", oneIteration
ElseIf Iteration = 5 THEN
Reporter.ReportEvent micFail, "...", "... exist for an invalid user"
End If
End If
If [linkname]= False Then
If Iteration = 1 OR Iteration = 2 OR Iteration = 3 OR Iteration = 4 Then
Reporter.ReportEvent micFail, "IQ24C", "IQ24C does not exist"
ElseIf Iteration = 5 THEN
Reporter.ReportEvent micPass, "...", "... does not exist"
End If
End If
At least that's my theory, haven't tried it yet
![Smile Smile](https://www.learnqtp.com/forums/images/smilies/smile.gif)
edit: Previous code didn't actually solve anything and was just a rehash of what I previously did.