Hi there,
I have seem some weird object property change behavior. Basically, my code as below:
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
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