QTP 11.0 is not able to identify the Webtable in my applicaton due to unavailability of mandatory properties and the relevant optional properties (Index Number) are getting changed dynamically. In our application the HTML id is blank for webtables. We tried to use the DIV tag ID and XPATH properties manually to identify the webtable, but QTP did not identify the webtable. We need a solution or workaround to identify the webtable by any of the unique properties. Is there any way to reolve this?
If there are any dynamic properties, you can use regular expressions to identify the webtable at runtime.
Here is a KB article that talks about how to use regular expressions: http://support.openview.hp.com/selfsolve/document/KM205585
[If this post or any other post helps to resolve your issue or query, mark the thread as solved and give KUDOS to the author for their assistance. ]
(Posts and opinions made here are my own and do not reflect the opinions of my employer HP in any way)
How are you? I hope you are fine 🙂
Additionally to the above point, please ensure, that the patches QTP_00709 and QTPWEB_00090 are installed, as they are mandatory and fix a list of issues.
Please also note, that, if the Web Table is recognized as WebElement only, it is most likely, that it is a customized control. In such a case, you would need to know, which toolkit was used. We provide Test Objects for a few toolkits, like ASPAjax or some versions of GWT, which can be installed through the normal setup. If the toolkit is not supported, please install and try to use the Web Extensibility SDK.
Functional Testing Support Engineer
[If this post solves or helps solve your issue, mark the thread as solved and give KUDOS to the author for their assistance.]
I have the same issue and found that I can get around it by using a regular expression on the constant text and column names attributes. I use descriptive programming in the script but you can change your settings for how QTP "learns" objects to simply pick up the column names and text properties when you learn them o the OR. Then apply your regular expression as needed. It works great for me...should for you too if the column names are exposed...Go to your Tools-->Object Identification menu option and make the needed changes to the mandatory properties list...