Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Weird object property
#1
Not Solved
Hi there,

I have seem some weird object property change behavior. Basically, my code as below:

Code:
Dim current_node
Set current_node = dataPane.WebElement("html id:=Crosstab_row_1")

msgbox current_node.GetROProperty("html id ")
' the message box will show [b]Crosstab_row_1[/b]
Dim condition
Set condition=dataPane.WebElement("class:=combobox_selected_row_table_text")
if condition.GetROProperty("innertext")="selection" then
   dataPane.WebEdit("class:= inputValue").Set "5"
   dataPane.WebEdit("name:=OK").Click()
End If

msgbox current_node.GetROProperty("html id ")
' the message box will show as empty

My question for this kind of codes is What has caused the lost of attribut value for current_node? as I have never reset the current_node object to other object or change its attribute between the two statments of message. This kind of behaviors has been seemed when I implement drag and drop. Object variable which original contain some attribute become an empty object right after the lines of drag and drop.

Any insight?

Thank you in advance.

Carol
Reply


Messages In This Thread
Weird object property - by Carol - 03-02-2008, 11:35 AM
RE: Weird object property - by sreekanth - 03-04-2008, 03:35 PM
RE: Weird object property - by Carol - 03-06-2008, 05:58 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [UFT] Change property of object (WpfButton) robertosalemi 2 2,616 11-22-2016, 12:43 PM
Last Post: Ankur
  Uft 12 - Identification of Google Chrome Object's Property value as plain text teja2730 0 2,578 02-02-2015, 05:22 PM
Last Post: teja2730
  Object doesn't support this property or method: 'webedit' Divya Roopa 3 10,004 03-11-2014, 07:26 AM
Last Post: basanth27
  Error object doesnt support this property or method seerick 7 8,005 06-08-2013, 09:32 PM
Last Post: seerick
Shy Descriptive Program - Not able to use object property which is having Bracket srselva 2 2,780 09-28-2012, 11:19 PM
Last Post: srselva

Forum Jump:


Users browsing this thread: 1 Guest(s)