Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP 11 - GetVisibleText not getting text correctly in windows7 from Activex
#1
Not Solved
Hi,

We used getvisibletext to get the actual text displayed in Activex object in application. We could not use GetROProperty as we do not have any other property that has the required text.
Script gets the required text when run on Windows XP correctly.
But, when executed on Windows 7, it returns part of text in lower case and also it returns some junk value.
I know GetVisibleText is dependent on OS.
But still, if there is any workaround or any other way to get the text from application, please let me know.

Application displays the below text
"800849 NOLE,MANDI DOB 01/01/1995 (19Y) sex F ABO/Rh A POS RC Units Transf 10 LastTransf 12/15/1994 HID HID1"
But GetVisibleText on windows 7 is getting the below text
"800849 NOLE,MANDI dob 01/01/1995 (19Y) sex f ABO/Rh A POS RC Units Transf 10 ^##`@ LastTransf 12/15/1994 HID HID1"

In Windows 7 UAC is disabled.

If there is any workaround, please let me know.

Thanks and Regards,
Pallavi
Reply
#2
Not Solved
Hello pallavi...



IFyou want the particular linksto display use the property name of the link and use get -ro- property...as it is a run time object...if it is a test object please use get-to-property..(gettestobject)..


and coming to getvisible text...
Use the following stmt..

Brower(.*).Page(.*).getvisibletext

it will display the total text present in that page...


for windows 7 try to execute in ie8 browser.(recommended)
if you are using uft u can execute on ie9 brower(recommended)..

TQ
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  ActiveX component can't create object: 'JavaWindow' JayeshK 0 1,721 01-07-2021, 01:12 PM
Last Post: JayeshK
  Need to Validate Text filed is blank after clicking on the Text box balak89 3 4,892 09-13-2015, 12:06 AM
Last Post: ADITI1992
Exclamation URGENT: ActiveX component can't create object citibank_ani 3 15,540 09-09-2014, 01:02 PM
Last Post: VarunKaushik
  qtp 11 not supporting activex addin excellentpawan 0 1,860 02-26-2014, 10:17 PM
Last Post: excellentpawan
  I am trying to extract text from a webelement but it is generating blank text scenari excellentpawan 2 4,661 08-13-2013, 08:37 PM
Last Post: excellentpawan

Forum Jump:


Users browsing this thread: 1 Guest(s)