Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
descriptive programming setting a value in a WebEdit table.
#1
Solved: 10 Years, 9 Months, 3 Weeks ago
First inquiry to a forum -- ever --> be kind...

I am trying to use descriptive programming to set a value inside of a table. I am using QTP 8.2 and our company is not planning on upgrading (insert groaning noise here). When I run QTP here is my error message:

Cannot identify the object "WebEdit" (of class WebEdit). Verify that this object's properties match an object currently displayed in your application.

Here is my code using "DP" which does not work.
Code:
Browser("name:=Field Activity").Page("title:=Field Activity").Frame("name:=FA_TYPE_CHAR").WebEdit("name:=FA_CHAR:0$CHAR_VAL").Set "FLOODCHK"


Here is the code when I recorded the action(this works well):
Code:
Browser("Field Activity").Page("Field Activity_2").Frame("FA_TYPE_CHAR").WebEdit("FA_CHAR:0$CHAR_VAL").Set "FLOODCHK"




I even tried to further clarify by adding the WebTable to the path and this also did not work.
Code:
Browser("name:=Field Activity").Page("title:=Field Activity").Frame("name:=FA_TYPE_CHAR").WebTable("innertext:=Characteristic Type Sequence Characteristic Value Check Type").WebEdit("name:=FA_CHAR:0$CHAR_VAL").Set "FLOODCHK"


I have used the Object spy to identify other properties I can use within the WebEdit portion, but I can not make it work like:"html id:=FA_CHAR:0$CHAR_VAL"

Here is what the Object Spy has returned when click on the cell:
Class name WebEdit
abs_x 547
abs_y 445
class data dc-CHAR-NONE-16-0 forms
default value empty when first trying to populate the cell
disabled 0
height 19
html id FA_CHAR:0CHAR_VAL
html tag INPUT
innerhtml
innertext
kind single line
max length 16
name FA_CHAR:0CHAR_VAL
outerhtml <INPUT class =" > lot of words here....
outertext
readonly 0
rows 0
type text
value
visible True
width 112
width in characters 18
x 331
y 122

Also, can someone please include examples of successful 'DP' code that can obtain a value from a table or debugging commands I can use to find out what's going on? (just learned about the .highlight command yesterday...)

Thanks in advance Mark S.
Reply


Messages In This Thread
descriptive programming setting a value in a WebEdit table. - by mark spurny - 11-12-2010, 01:16 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Descriptive PROGRAMMING sandeepm1989 0 2,023 01-21-2016, 11:46 AM
Last Post: sandeepm1989
  Setting value in a WinObject Ansh123 0 4,190 03-20-2014, 09:44 PM
Last Post: Ansh123
  Setting values in Tabstrip TonyBarker 0 1,765 01-25-2013, 03:32 PM
Last Post: TonyBarker
  Is this one instance where descriptive programming does not work? chong67 10 6,873 10-09-2012, 06:41 PM
Last Post: harishshenoy
  Descriptive Programming By giving the description in form of the string arguments sia sharma 6 4,879 09-12-2012, 08:57 PM
Last Post: freeboynil

Forum Jump:


Users browsing this thread: 1 Guest(s)