Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to get text from Web page
#3
Solved: 11 Years, 3 Months, 1 Week ago
Hi,
the reason you are not able to get any value is coz the frame is dynamic in nature. First you need to handle the frame properties in you repository. Then the code mentioned above will not capture the webelement you are trying to get, coz you are trying to get the outertext value from the entire frame. So your code should look like this:

Code:
Set oDesc = Description.Create()
oDesc("html id").Value = "lblError"
oDesc("html tag").Value = "SPAN"
x = Browser("AutoDCR").Page("B u i l d i n g P l a").Frame("contents_3").Webelement(oDesc).GetROProperty("outertext")
MsgBox x
Set oDesc = nothing

If you need to use additional properties, use it to make your search more unique.

Hope this helps
Thanks
MV
Reply


Messages In This Thread
RE: Unable to get text from Web page - by mvuyy001 - 11-25-2010, 11:41 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Can QTP handle slick grid table in a web page qtplearner88 2 4,479 10-01-2019, 10:44 AM
Last Post: shilpi952
  unable to rowcount in web table manoj84monu 1 2,887 06-13-2016, 04:46 PM
Last Post: Anu1234
  DP Web Browser/Page issues rstimers 1 2,420 08-14-2015, 12:37 PM
Last Post: venkatesh9032
Question Capture Entire Web page through QTP learnQtptips 2 11,903 07-25-2013, 05:24 PM
Last Post: vinod123
  Unable to click on moving text in a website Akhila 4 3,978 07-18-2013, 02:38 PM
Last Post: tanyamrz

Forum Jump:


Users browsing this thread: 4 Guest(s)