02-28-2012, 02:10 PM
hi friends,
Need help!!
1st Problem:
As suggested i am getting outerhtml of webtables.
Now i want qtp to wait until outerhtml of my webtable changes
I am using the below code:
Error message:: "Object doesn't support this property or method"
2nd Problem:
I am having problem in asking qtp to wait until a button appears:-
but button appears when my outerhtml of above cell is blue(td color), and if it is red then button doesn't appear(that means there is some error)
problem is when button is red my second webtable name changes to "Delete" and when it is blue it changes to "Ignore"
so if i tell qtp to wait until button is visible, then qtp fails when there is some error(because button will not visible if it is failed)
Please suggest the correct way..
(I know my question is not related to this post but as a reference of code snippets posted earlier, posting in this thread )
Thanks & Regards
Zeeshan
Need help!!
1st Problem:
As suggested i am getting outerhtml of webtables.
Now i want qtp to wait until outerhtml of my webtable changes
I am using the below code:
Code:
Browser("Name:=CDD").Page("Title:=CDD").WebTable("name:=Refresh View").WebTable("name:=Ignore").Object.rows(1).cells(1).waitproperty "outerhtml", micRegExpMatch("<TD style=" & "COLOR: \#([f|F|0]{6})"& ">[\w\W]*?</TD>")
Error message:: "Object doesn't support this property or method"
2nd Problem:
I am having problem in asking qtp to wait until a button appears:-
but button appears when my outerhtml of above cell is blue(td color), and if it is red then button doesn't appear(that means there is some error)
problem is when button is red my second webtable name changes to "Delete" and when it is blue it changes to "Ignore"
so if i tell qtp to wait until button is visible, then qtp fails when there is some error(because button will not visible if it is failed)
Please suggest the correct way..
(I know my question is not related to this post but as a reference of code snippets posted earlier, posting in this thread )
Thanks & Regards
Zeeshan