Re: QTP not executing the ELSE condition if webelement doesn't exist

2015-04-19 Thread suyash mathur
TryIf .WebElement(File Upload successfully). waitproperty(visible,True,100)= True then On Friday, 3 April 2015 21:36:45 UTC+5:30, vidya Bose wrote: Hi, I am trying to validate if a webelement property exists on the page or not. But QTP always returns true :( and not

Re: QTP not executing the ELSE condition if webelement doesn't exist

2015-04-08 Thread Babji k
Hi could you verify page is having creationtime property, Creationtime property is applicable to Browser object only Thanks Regards **-Babji.** On 7 April 2015 at 09:27, Gopaya S ind...@gmail.com wrote: I think more than one objects are present, try index property once. use descriptive

Re: QTP not executing the ELSE condition if webelement doesn't exist

2015-04-06 Thread Gopaya S
I think more than one objects are present, try index property once. use descriptive webElement property value(highlighted in red colour) If Browser(CreationTime:=0).Page(CreationTime:=0).WebElement(innertext:=File Upload successfully,index:=0).Exist(0) Then Msgbox Success Else

Re: QTP not executing the ELSE condition if webelement doesn't exist

2015-04-04 Thread vidya Bose
Hi I have tried the below code as well... It always returns TRUE even if the webelement doesnt exists Result = Browser().Page().Webelement(File Uploaded successfully).Exist(0) msgbox Result On Friday, April 3, 2015 at 11:31:45 AM UTC-5, rajivkumarnandvani wrote: Firs you

Re: QTP not executing the ELSE condition if webelement doesn't exist

2015-04-03 Thread Rajiv Nanduani
Firs you should validate is your script output is returning true or false using this Msgbox Browser(CDMS :: Master Agreement).Page(CDMS :: Master Agreement).WebElement(File Upload successfully).Exist(0) Then store it's output in a variable After that you can implement if else condition on this