08-13-2013, 08:14 AM
(This post was last modified: 08-13-2013, 08:14 AM by excellentpawan.)
|
I am trying to extract text from a webelement but it is generating blank text scenari
|
|
08-13-2013, 12:02 PM
Hi Pavan
you need to use variable k in the object created to print all the webelements Please find the below code Code: Set element = description.Create
element("micclass").value = "WebElement"
element("html tag").value = "STRONG"
set contents = browser("name:=Journal of Applied and Natural Science").Page("title:=Journal of Applied and Natural Science").ChildObjects(element)
print contents.count
For k = 0 to contents.count-1
text = contents(k).getroproperty("innertext")
print text
NextThanks -Tanya
08-13-2013, 08:37 PM
Thanks tanya it works
|
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads… | |||||
| Thread | Author | Replies | Views | Last Post | |
| Problems with Text color recognition | Treirk | 0 | 1,477 |
06-17-2019, 12:19 PM Last Post: Treirk |
|
| How to remove text in the webedit | silpavinod | 3 | 14,693 |
07-12-2018, 11:08 AM Last Post: vijaychourasiya0109@gmail.com |
|
| text checkpoint properties error | alp | 0 | 1,517 |
11-24-2017, 04:36 PM Last Post: alp |
|
| How can we get the Windows application Text box background color Using UFT 11.53 | Kuppampattu | 3 | 6,937 |
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,436 |
02-18-2017, 04:20 AM Last Post: alexwhite |
|
Users browsing this thread: 1 Guest(s)

