Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to use GetRoproperty
#1
Solved: 11 Years, 4 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, 4 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,637 10-15-2012, 11:52 PM
Last Post: agarwl.anurag
  GetROProperty help mv8167 1 2,768 06-26-2012, 11:53 PM
Last Post: supputuri
  GetROProperty error when used in a for loop JustLag 2 2,935 05-15-2012, 08:19 PM
Last Post: JustLag
  GetROProperty Getafix 1 6,331 08-23-2011, 07:16 PM
Last Post: Ankesh
  Generate Run time error on Allchkboxes(i).GetROProperty("all items") Langxii 1 3,624 07-06-2011, 09:34 AM
Last Post: rajpes

Forum Jump:


Users browsing this thread: 2 Guest(s)