Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to identify non-editable text field
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi!

How about this:

Code:
set desc=Description.create
desc("html tag").value="INPUT"
desc("name").value="<TheNameOfYourTextField>"
set found=<YourParentPageObject>.childObjects(desc)

editable=found(0).getROProperty("enabled")

(or maybe the property is called "disabled", cant remember, but in case its called that then its:

editable=not found(0).getROProperty("disabled")

Cheers!
Reply


Messages In This Thread
RE: how to identify non-editable text field - by ConstantChange - 04-11-2008, 07:54 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Read text from text file and save it into a variable in qtp arpan 3 12,957 06-19-2013, 08:34 PM
Last Post: arpan
  Need to compare two text files - ignoring some text nelly27281 2 4,578 09-09-2012, 12:09 PM
Last Post: freeboynil
Exclamation How to enter text in webedit field..... Unleash Rajesh 6 23,080 09-01-2011, 02:07 PM
Last Post: SQT
  Cell Editable or Not in JavaTable anshul.grg07 0 2,713 05-18-2011, 01:00 AM
Last Post: anshul.grg07
  Finding specific text in a text string janriis 3 5,504 10-08-2010, 04:00 PM
Last Post: KavitaPriyaCR

Forum Jump:


Users browsing this thread: 1 Guest(s)