11-12-2010, 01:16 AM
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.
Here is the code when I recorded the action(this works well):
I even tried to further clarify by adding the WebTable to the path and this also did not work.
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.
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.