# How to handle Webtable Xpaths and fetch data on UI using Object Repo

**URL:** <https://forum.katalon.com/t/how-to-handle-webtable-xpaths-and-fetch-data-on-ui-using-object-repo/45837>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [July 23, 2020, 9:16am UTC](https://forum.katalon.com/t/how-to-handle-webtable-xpaths-and-fetch-data-on-ui-using-object-repo/45837 "2020-07-23T09:16:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandeep.kumar3](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@sandeep.kumar3](https://forum.katalon.com/u/sandeep.kumar3)\
**Post date:** [July 23, 2020, 9:16am UTC](https://forum.katalon.com/t/how-to-handle-webtable-xpaths-and-fetch-data-on-ui-using-object-repo/45837/1 "2020-07-23T09:16:08Z")

</div>

How to handle Webtable Xpaths and fetch data on UI using Object Repo

---

<div class="post-metadata">

**Author:** ![grylion54](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/grylion54/32/16265_2.png) [@grylion54](https://forum.katalon.com/u/grylion54)\
**Post date:** [July 23, 2020, 11:38pm UTC](https://forum.katalon.com/t/how-to-handle-webtable-xpaths-and-fetch-data-on-ui-using-object-repo/45837/2 "2020-07-23T23:38:25Z")

</div>

Although you can create ‘td’ and ‘th’ testObjects for the whole table, I generally only create the elements for the heading and one or two of the first row. I use the element of the first row to waitForElementVisible to prevent null exception until the table exists.

Otherwise, I search the table like below

> **[How to handle Web Tables](https://docs.katalon.com/katalon-studio/docs/handle_web_tables.html)**
>
> A Web table is a collection of rows and columns. This article will show you how to handle web tables using Katalon Studio.

---

<div class="post-metadata">

**Author:** ![grylion54](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/grylion54/32/16265_2.png) [@grylion54](https://forum.katalon.com/u/grylion54)\
**Post date:** [July 24, 2020, 9:16pm UTC](https://forum.katalon.com/t/how-to-handle-webtable-xpaths-and-fetch-data-on-ui-using-object-repo/45837/3 "2020-07-24T21:16:02Z")

</div>

Here is a bit more information from another question;

> [@Testing maintenance](http://forum.katalon.com/t/testing-maintenance/45771/12):
>
> In the new screenshot you provided, I found that your web page has \<td\> tags. \<td role="gridcell"\>...\</td\> This implies that the HTML has at least 1 \<TABLE\> element which has one or more \<tr\> element. The \<tr\> element represents rows of a grid. The overall structure of the page would be as follows. \<html\> ...\<!-- more markup here --\> \<body\> ... \<table id="TBL1"\> \<tbody\> \<tr\> \<td\>\<!-- Type/Tool --\>\</td\> \<td\>\<!-- Config --\>\</td\> \<td\>\<!-- Resource --\>\</td\> \<td\>\<!-- Date --\>\</td\> …
