Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to use GetROProperty
#1
Solved: 11 Years, 4 Months, 3 Weeks ago
I am trying to learn how to use GetROProperty instead of using chelkpoints (as it has been mentioned to me)

In a website: using v9.5

How do I check to see if a link, image or text (etc) exists before continuing on in the script? (a code example is all I need)

How do I verify that all of my images, links, text (etc) in my object repository are found on the page and none are missing.

Thx guys
Reply
#2
Solved: 11 Years, 4 Months, 3 Weeks ago
you can use .Exist method to check any object is present or not.

Code:
if Broswer().Page().Link().exist then

End if

you can use any property inside getroproperty to see the run time value:
suppose you are checking amount 500 in your application for button object then:
Code:
iexpectedamount= 500
iactualamount = Browser().page().Webbutton().getroproperty('innertext")
you this variables to check the value.
Reply
#3
Solved: 11 Years, 4 Months, 3 Weeks ago
Jay,

If I want my automated test to wait until a certain property is visible/etc, would I:
Code:
If False = Broswer().Page().Link().exist then
   wait(1)
End if
thx,
Lorena
Reply
#4
Solved: 11 Years, 4 Months, 3 Weeks ago
Hi Lorena,

Use Do loop until condition

Eg:

Code:
Do

Loop Until  Browser().Page().WebButton().Getropropterty("visible")=True

thanks,
Reply
#5
Solved: 11 Years, 4 Months, 3 Weeks ago
Thank! Rajendra
Reply
#6
Solved: 11 Years, 4 Months, 3 Weeks ago
I tried your suggestion but received the following Run Error:

Object doesn't support this property or method: 'Browser(...).Page(...).WebElement(...).Getropropterty'

Line (22): "Loop Until Browser("WisdomLogin").Page("WisdomLogin").WebElement("Welcome to Wisdom").Getropropterty("visible")=True"

What am I doing wrong?

thx
Reply
#7
Solved: 11 Years, 4 Months, 3 Weeks ago
GetRoProperty ..use this
Spelling was incorrect earlier.
Reply
#8
Solved: 11 Years, 4 Months, 3 Weeks ago
Hi Lorena,

Use Do loop until condition

Eg:

Do

Loop Until Browser().Page().WebButton().GetRoProperty("visible")=True


thanks,
Reply
#9
Solved: 11 Years, 4 Months, 3 Weeks ago
Yes, I got it to work.

thxxxxx all
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to use GetRoProperty for title svsaug6 2 9,704 08-26-2013, 03:36 AM
Last Post: Novemberrain81
  .Object vs GetROProperty? Archens 0 3,337 03-28-2012, 10:26 PM
Last Post: Archens
  QTP gives wrong value through GetRoProperty rahul3tech 2 4,061 02-03-2012, 10:14 PM
Last Post: rajpes
  Problem with GetROProperty QADBA 2 4,759 07-15-2008, 07:46 PM
Last Post: QADBA

Forum Jump:


Users browsing this thread: 2 Guest(s)