Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to use GetRoproperty
#1
Solved: 11 Years, 5 Months ago
hi,

i m using qtp for a web based application.i used below mentioned script,here GetRoproperty is not retrieving the property.Could anyone help me regarding this




Code:
If browser("Gmail: Email from Google").Page("login page").Exist Then error1=browser("Gmail: Email from Google").Page("login page").WebElement("erro").GetROProperty("text")
  msgbox error1
else
browser("Gmail - Inbox (6) - commonuser").Page("Gmail - Inbox (6) - commonuser").Sync
    End If
Reply
#2
Solved: 11 Years, 5 Months ago
Using object spy, spy on the object (In your case, WebElement("erro") ).
Check whether for text property, there is a value. Otherwise, choose other property like innertext, etc
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Smile How to Select GetROproperty value in GUI sangitarm 2 4,703 10-15-2012, 11:52 PM
Last Post: agarwl.anurag
  GetROProperty help mv8167 1 2,795 06-26-2012, 11:53 PM
Last Post: supputuri
  GetROProperty error when used in a for loop JustLag 2 2,973 05-15-2012, 08:19 PM
Last Post: JustLag
  GetROProperty Getafix 1 6,351 08-23-2011, 07:16 PM
Last Post: Ankesh
  Generate Run time error on Allchkboxes(i).GetROProperty("all items") Langxii 1 3,658 07-06-2011, 09:34 AM
Last Post: rajpes

Forum Jump:


Users browsing this thread: 1 Guest(s)