| || |
Problem with webtables
Hi i am using 100% DP, we are mention the object properties in the .vbs file by using classes concept. i developed the script and it run well previosly. but now it qtp showing the object is not recognized. when i spy the page, the previos shown web tables are not there. but the GUI is same as the previous. for displaying some informatin in the web table contains another webtable. this webtable gives the correct informatin. i mentioned the webtable cells to retirve the data. after somedays the lowlevel webtables are not there. but gui is not changed. can u suggest me what i could do?
Re: Problem with webtables
You should expect that.
Even with DP: if DevCode is changed you need to follow it and make Test Cases adjustments and upgrates.
Example relative to WebTables:
WebTables indexing are changing very often. Sometimes, without visible GUI changes. Even it happens when DevCode recompiled with no changes made at all. When WebGrid has being rendered into WebTable - there is some changable part of HtmlID and ObjectName of object. That happens automatically when compiling new build and helps avoiding objects name's conflicts between the builds.
There is nothing to control Compiler in this matter. Just be ready to accept that and code your Test Cases accordingly. You will find RegEx useful in such a cases. For example:
WebTable("HtmlID:=ctr3_45entry:MainTable") might be coded as WebTable("HtmlID:=.*MainTable").
Explore your WebTables and changes through build to build to define changable part. Or do it right away, using your common sence. Life will show you how to handle similar situation in the future and what objects are required heavy updating.