Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script
#1
Solved: 11 Years, 3 Months, 4 Weeks ago
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

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
Reply


Messages In This Thread
Script - by Ann Hagglund - 04-20-2011, 04:33 PM
RE: Script - by manabh - 04-20-2011, 04:36 PM
RE: Script - by Ann Hagglund - 04-20-2011, 05:02 PM
RE: Script - by manishbhalshankar - 04-20-2011, 04:43 PM
RE: Script - by Jay - 04-20-2011, 05:58 PM
RE: Script - by Ann Hagglund - 04-28-2011, 07:14 PM
RE: Script - by UFTEnthusiast - 04-28-2011, 06:57 PM
RE: Script - by manabh - 04-28-2011, 07:41 PM
RE: Script - by Ann Hagglund - 04-28-2011, 08:58 PM
RE: Script - by UFTEnthusiast - 04-28-2011, 09:59 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)