Micro Focus QTP (UFT) Forums
link click not working - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: link click not working (/Thread-link-click-not-working)



link click not working - sia sharma - 08-03-2012

hello everyone,

this is my code

Code:
Browser("Justdial").Page("Justdial").WebEdit("city").Set "Delhi / Ncr"
Browser("Justdial").Page("Justdial").Link("3 Star Hotels").Click
wait(3)
If  Browser("Justdial").Page("3 Star Hotels in Delhi,").WebElement("Category").Exist Then
    Reporter.ReportEvent micPass,"pass","valid category"
    else
    Reporter.ReportEvent micFail,"fail","invalid category"
End If



it is working fine when i use F11 to run it step by step
but gives fail when i run it using run option?


RE: link click not working - sshukla12 - 08-03-2012

Hi,
Use wait for syn where some new page is displayed.

Regards,
Sankalp


RE: link click not working - sia sharma - 08-03-2012

i m already using it


RE: link click not working - SteveS - 08-03-2012

Try, Browser("Justdial").Sync instead of, Wait(3)