Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[UFT] Get text into DIV through HTML tag
#1
Not Solved
Hi,
I have this element.
[Image: uft_yaweb_spy_html.PNG]

I would like to take the text into WebElement object so i wrote:
Code:
txt = Browser("YA Web").Page("YA Web").WebElement("html tag:=CAPTION").GetROProperty("innerText")
I skipped the WebTable object because in the repository the WebElement was inserted as child of YaWeb Page.

UFT not finds this object into my application:
"The "[WebElement]" object's description matches more than one of the object currently displayed in your application. etc...."

Why?

Thanks a lot.
Reply
#2
Not Solved
Object Identification Issue.. Try Descriptive .. Please find the snippet.


1. text = Br().pg().webtable("xyx").getcelldata(Rownum,colnum)
Msgbox text

2.rownum = B().pag().webtable("xyz").getrowwithcelltext("<Give text here>")
Msgbox rownum
Reply
#3
Not Solved
I resolved with removing tag description of object from object repository.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How can we get the Windows application Text box background color Using UFT 11.53 Kuppampattu 3 6,143 06-06-2017, 11:12 AM
Last Post: workrohit08
  How to find and change text in PDF document using QTP UFT automation VBscript alexwhite 0 12,082 02-18-2017, 04:20 AM
Last Post: alexwhite
  Customized HTML reports in QTP azeem 11 49,650 12-31-2016, 02:57 PM
Last Post: chevronneraji
  [UFT] SwfToolbar > error for to get the text robertosalemi 0 2,010 02-03-2016, 07:53 PM
Last Post: robertosalemi
  [UFT] Len of DIV founded by ClassName robertosalemi 0 2,320 01-19-2016, 08:18 PM
Last Post: robertosalemi

Forum Jump:


Users browsing this thread: 1 Guest(s)