Prepare for your Next Interview
This is a discussion on Identify Rows columns in datagrid control within the QTP forums, part of the Software Testing category; Why QTP 9.1 does not identify rows/cols in datagrid control? In my application i need to enter some data in a webEdit, after submiting the data displayed in ...
|
|||
|
Identify Rows columns in datagrid control
Why QTP 9.1 does not identify rows/cols in datagrid control?
In my application i need to enter some data in a webEdit, after submiting the data displayed in adatagrid . Now I need to verify whether the entered data is displayed in the datagrid or not. Here i am facing the problem the in the datagrid it dose not identify rows/cols in fact it detects the grid as a whole. so how can i verify one particular item in the grid? can anybody please help me ? |
| Sponsored Links |
|
|||
|
Re: Identify Rows columns in datagrid control
In Case the DataGrid is been captured as one of the Tables then you need to fetch the data using Methods associated with the Table....u might not get the Data as an Individual Object...
Regards Nawab |
|
|||
|
Re: Identify Rows columns in datagrid control
Thanks for your response. The Data Grid is identifying as single TDBgrid object i can not access individual rows and cols to match the item. I would be grateful to you if u can tell me which property shall i used to check previously entered item.
Regards Kanta Last edited by kanta : 02-25-2008 at 03:36 AM. |
|
|||
|
Re: Identify Rows columns in datagrid control
When you go for the DOM Model in QTP you might get some methods like
Bowser().Page().Frame().WbFgrid.Cell()...or soemthing else..here you can locate the Cell of the WebTable...I hope that will help! Regards, Nawab |
| The Following User Says Thank You to NawabShaikh For This Useful Post: | ||
|
|||
|
Re: Identify Rows columns in datagrid control
Quote:
Thanks, Suresh K |
| The Following User Says Thank You to ksuresh.testing For This Useful Post: | ||
|
|||
|
Re: Identify Rows columns in datagrid control
Quote:
I appreciate anyone who can help me for this. Thank you. |
|
|||
|
Re: Identify Rows columns in datagrid control
when u enter some data in to ur web edit it will displays some values on web table...if u verifies rows and coloumns...u can go this way...
dim row= browser("b name").page("p.name").web table.getrowcount dim col =browser("b name").page("p.name").web table.get col count for i=1 to rows for j=1 to col msgbox browser("b name").page("p.name").web table.getcell data(i,j) next next |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to add values to other columns | Mohamed_Rafi | Oracle | 10 | 03-27-2008 12:35 AM |
| Set columns as not null | jency | SQL | 2 | 12-06-2007 01:12 AM |
| Pivot columns | Sant_parkash | Oracle | 3 | 10-24-2007 10:35 AM |
| How to convert rows into columns in Teradata | rashnyo | Data Warehousing | 0 | 07-12-2007 01:52 AM |
| How do I transpose Rows into Columns? | Anasuya1031 | SQL | 2 | 07-09-2007 05:37 AM |