# Can Katalon Studio compare text on a WebUI with text in a Word doc?

**URL:** <https://forum.katalon.com/t/can-katalon-studio-compare-text-on-a-webui-with-text-in-a-word-doc/57528>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [August 17, 2021, 7:26pm UTC](https://forum.katalon.com/t/can-katalon-studio-compare-text-on-a-webui-with-text-in-a-word-doc/57528 "2021-08-17T19:26:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![graham.carter](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/graham.carter/32/16104_2.png) [@graham.carter](https://forum.katalon.com/u/graham.carter)\
**Post date:** [August 17, 2021, 7:26pm UTC](https://forum.katalon.com/t/can-katalon-studio-compare-text-on-a-webui-with-text-in-a-word-doc/57528/1 "2021-08-17T19:26:57Z")

</div>

Hi guys,  
I’m looking at comparing text in a WebUI with text in Microsoft Word document.  
ie, text in the WebUI (on a web tile for example) should match the text in the Design doc.  
Can Katalon Studio fetch a Word doc (maybe from github or within ‘Katalon Studio\Data Files’) and compare a portion of text with what’s displayed in the WebUI?.

many thanks for any help you can give!.

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [August 18, 2021, 1:22am UTC](https://forum.katalon.com/t/can-katalon-studio-compare-text-on-a-webui-with-text-in-a-word-doc/57528/2 "2021-08-18T01:22:31Z")

</div>

> [@graham.carter](#):
>
> Can Katalon Studio fetch a Word doc (maybe from github or within ‘Katalon Studio\Data Files’) and compare a portion of text with what’s displayed in the WebUI?.

No.  
I think, no hope.

* * *

Are you skilled enough to invent a solution for yourself in Groovy programming language? If yes, you can try developing it using [Apache POI API](https://poi.apache.org/text-extraction.html) which is bundled in Katalon Studio; though I do not recommend it to you.

If not, you should abandon the idea of using a Word (docx) file as data source. You should somehow convert the docx file into an Excel file (.xlsx) and reformat it so that the data is in a simple grid format.

* * *

> … the text in the Design doc.

You can reorganise your design doc so that it consists of a text body in Word (docx) + appendices in table format in Excel (xlsx) sheets, can’t you? Or, you can embed an Excel sheet into a Word document, like this:

> **[How to Link or Embed an Excel Worksheet in a Word Document](https://www.howtogeek.com/358380/how-to-link-or-embed-an-excel-worksheet-in-a-powerpoint-or-word-document/)**
>
> Sometimes, you want to include the data on an Excel spreadsheet in your Microsoft Word document.

Once you moved your text fixture in Excel out of Word, then Katalon will happily fetch the data through its Data-driven testing feature.

---

<div class="post-metadata">

**Author:** ![loc.nguyen](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/loc.nguyen/32/17513_2.png) [@loc.nguyen](https://forum.katalon.com/u/loc.nguyen)\
**Post date:** [August 18, 2021, 6:25am UTC](https://forum.katalon.com/t/can-katalon-studio-compare-text-on-a-webui-with-text-in-a-word-doc/57528/3 "2021-08-18T06:25:29Z")

</div>

I guess that I did not have a deep understanding your situation and why you need to do that. However, if you want we are able to do that.

1. Open Word by Katalon Tools with File you want, use Windows keyword to gettext
2. Store temp data in the place that you want (example temp txt file)
3. Now, work with your web application
4. Get data has been stored and used keyword related to WebUI to compare text

Once again, it is just the work around way if we want to try to combine both Windows and WebUI Keywords from the Katalon tool

FYI.
