04-20-2011, 04:36 PM
Hi,
write it as
write it as
Code:
If Browser("Njord Web Portal - Job_2").Page("Njord WebPortal - Job").Link("Apply").Exists Then
Browser("Njord Web Portal - Job_2").Page("Njord WebPortal - Job").Link("Apply").Click
Else
if Browser("Njord Web Portal - Job_2").Page("Njord Web Portal - Job").Link("Close").Exists Then
Browser("Njord Web Portal - Job_2").Page("Njord Web Portal - Job").Link("Close").Click
end if
end if