# How can enter text forms based on text label(Please Refer image)

**URL:** <https://forum.katalon.com/t/how-can-enter-text-forms-based-on-text-label-please-refer-image/13533>\
**Category:** Miscellaneous\
**Created:** [October 3, 2018, 11:24am UTC](https://forum.katalon.com/t/how-can-enter-text-forms-based-on-text-label-please-refer-image/13533 "2018-10-03T11:24:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Veerender](https://avatars.discourse-cdn.com/v4/letter/v/3ab097/32.png) [@Veerender](https://forum.katalon.com/u/Veerender)\
**Post date:** [October 3, 2018, 11:24am UTC](https://forum.katalon.com/t/how-can-enter-text-forms-based-on-text-label-please-refer-image/13533/1 "2018-10-03T11:24:35Z")

</div>

![](https://s3.amazonaws.com/katalon-forum/editor/lv/doqcfprilr41.png "Image: https://s3.amazonaws.com/katalon-forum/editor/lv/doqcfprilr41.png")Hi All,

I need to enter data in form but in the forms label names are dynamic.Please Refer image

Please let me know if any other information required.

thanks

[example.png](https://s3.amazonaws.com/katalon-forum/editor/lv/doqcfprilr41.png)

---

<div class="post-metadata">

**Author:** ![Russ\_Thomas](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/russ_thomas/32/11884_2.png) [@Russ\_Thomas](https://forum.katalon.com/u/Russ_Thomas)\
**Post date:** [October 3, 2018, 12:30pm UTC](https://forum.katalon.com/t/how-can-enter-text-forms-based-on-text-label-please-refer-image/13533/2 "2018-10-03T12:30:25Z")

</div>

> **[\[TIP\] My test is BROKEN!!! NOTHING WORKS!!!!!! PLEASE HELP ME!!!!!!!!!!!!!](http://forum.katalon.com/discussion/9337/tip-my-test-is-broken-nothing-works-please-help-me)**
>
> If you find yourself saying something like the title of this post, take a deep breath and relax.  Do that BEFORE you reach for the keyboard and BEFORE you start typing.

> **[Handling Web element locators using Katalon Studio](https://docs.katalon.com/katalon-studio/tutorials/web_element_locators.html)**
>
> In Web testing, locator is the only way to identify an element on a page. This tutorial will help your team choose a good approach for Web element locators.

---

<div class="post-metadata">

**Author:** ![Arnel](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/arnel/32/6360_2.png) [@Arnel](https://forum.katalon.com/u/Arnel)\
**Post date:** [October 4, 2018, 3:48pm UTC](https://forum.katalon.com/t/how-can-enter-text-forms-based-on-text-label-please-refer-image/13533/3 "2018-10-04T15:48:39Z")

</div>

Hi Veerender,

Why do you need to rely on the label if you can inspect and find the id or name of the text box?

Looking at your form I’m sure there’s a unique name or id on those textboxes. Try to inspect them and make it as your locator.

If not, then provide the HTML code of the objects.

---

<div class="post-metadata">

**Author:** ![Veerender](https://avatars.discourse-cdn.com/v4/letter/v/3ab097/32.png) [@Veerender](https://forum.katalon.com/u/Veerender)\
**Post date:** [October 8, 2018, 5:32am UTC](https://forum.katalon.com/t/how-can-enter-text-forms-based-on-text-label-please-refer-image/13533/4 "2018-10-08T05:32:22Z")

</div>

Hi [Russ Thomas](http://forum.katalon.com/profile/4015/Russ%20Thomas "Link: http://forum.katalon.com/profile/4015/Russ%20Thomas"),

[https://www.katalon.com/resources-center/tutorials/web-element-locators/](https://www.katalon.com/resources-center/tutorials/web-element-locators/ "Link: https://www.katalon.com/resources-center/tutorials/web-element-locators/")

above link is for

| 
  

  

  

  

 | 
\<div class="field-group"\>

\<label accesskey="u" for="login-form-username"\>\<u\>U\</u\>sername\</label\>  
\<input class="text medium-field" id="login-form-username" name="os\_username" type="text" value=""\>

\</div\>  
  
but in my current application above code is dynamic for every form(i.e CRF's)&nbsp;  
  
for&nbsp;  
  
Thanks ![](https://s3.amazonaws.com/katalon-forum/editor/hb/dvw4haaf71ev.png "Image: https://s3.amazonaws.com/katalon-forum/editor/hb/dvw4haaf71ev.png")
 |

---

<div class="post-metadata">

**Author:** ![Mate\_Mrse](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/mate_mrse/32/345_2.png) [@Mate\_Mrse](https://forum.katalon.com/u/Mate_Mrse)\
**Post date:** [October 15, 2018, 12:05pm UTC](https://forum.katalon.com/t/how-can-enter-text-forms-based-on-text-label-please-refer-image/13533/5 "2018-10-15T12:05:49Z")

</div>

Since there is no complete HTML provided, I’m going to take a guess. 🙂

Did you try something like the following xpath:

```auto
//input[@type="radio" and contains(., "FT_5")]

```
