Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Exist statement executing when it should not
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
I have the following code:

Code:
If Browser("Wisdom").Page("WisdomLogin").Frame("parent").WebElement("No Results Found").Exist(2) Then
    Exit Function
End If

Even though the "No Results Found" dose not exist, the End Function gets executed.

Am I using this ide inncorrectly?

Update:

I changed my code to the followimng? It works, I think, now i am currious if it is correct QTP coding.

Code:
If Browser("Wisdom").Page("WisdomLogin").Frame("parent").WebElement("innertext:=No Results Found", "visable:=True").Exist(1) Then



Thx for your ideas.

Lorena
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  error when executing an UFT automation script alexalloza 0 1,537 10-30-2018, 06:17 PM
Last Post: alexalloza
  Exist and Visible Are True When Objects Aren't There - Is there A Better Way? zunebuggy 3 3,130 04-24-2018, 02:12 PM
Last Post: Ankur
  Executing via create "RES"xx folder? nishitd 0 1,243 03-07-2018, 01:09 AM
Last Post: nishitd
  Time Delay issue with Exist mv8167 11 24,783 06-19-2017, 02:56 PM
Last Post: grosorg
  QTP-Re-executing script after completion of all iterations JwalantBhatt0602 1 2,687 03-24-2016, 12:37 AM
Last Post: JwalantBhatt0602

Forum Jump:


Users browsing this thread: 1 Guest(s)