Hi,
I am facing issues while using Exist method in QTP..As if i use Exist with If else then it is working fine...but if used directly then not working...
Ex:
Browser("Home").Page("Home_2").WebEdit("ctl00$uxMNJDefaultContentPlace").Click
Browser("Home").Page("Home_2").WebEdit("ctl00$uxMNJDefaultContentPlace").Set DataTable("mfgpartnumber", dtGlobalSheet) ''#Read mfg# from datasheet
Browser("Home").Page("Home_2").Image("ctl00$uxMNJDefaultContentPlace").FireEvent "onmouseover"
Browser("Home").Page("Home_2").Image("ctl00$uxMNJDefaultContentPlace").Click 31,11
wait(15)
Browser("Home").Page("Shopping Cart").WebElement("$3.99").Output CheckPoint("Shoppingcart_subtotal")
Browser("Home").Page("Shopping Cart").Check CheckPoint("Shopping Cart_price_2")
''#Browser("Home").Page("Shopping Cart").WebElement("$3.99").Output CheckPoint("$3.99")
Browser("Home").Page("Shopping Cart").Image("ctl00$uxMNJDefaultContentPlace").FireEvent "onmouseover"
Browser("Home").Page("Shopping Cart").Image("ctl00$uxMNJDefaultContentPlace").Click 66,10
wait(5)
Browser("Home").Page("Edit Shipping Address").Link("Continue").Click
wait(5)
Browser("Home").Page("Order Shipping Method").Link("Continue").Click
wait(5)
Here i want to replace wait(_ to some another method like Exist to improve performance...
Can anybody help me to sort it out..,.
Thanks, Guddu G