04-20-2011, 04:33 PM
Hi, I want the system to click on a link "Apply", but if that link doesn't exist I want the system to click on a link "Close".
The "test" is applying for a job and if the "test" has already applied for just that job, the button "Apply" doesn't exist.
I have written following
[/i]but I receive Syntax error. Why?
I'm greatful all tips I can get.
Ann Hagglund
The "test" is applying for a job and if the "test" has already applied for just that job, the button "Apply" doesn't exist.
I have written following
Code:
If
Browser("Njord Web Portal - Job_2").Page("Njord WebPortal - Job").Link("Apply") Then .Click
Else
Browser("Njord Web Portal - Job_2").Page("Njord Web Portal - Job").Link("Close").Click
End If
[/i]but I receive Syntax error. Why?
I'm greatful all tips I can get.
Ann Hagglund