# Context Aware Anchor

**URL:** <https://forum.uipath.com/t/context-aware-anchor/121885>\
**Category:** Help\
**Created:** [June 3, 2019, 1:10am UTC](https://forum.uipath.com/t/context-aware-anchor/121885 "2019-06-03T01:10:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Asiri](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/asiri/32/54749_2.png) [@Asiri](https://forum.uipath.com/u/Asiri)\
**Post date:** [June 3, 2019, 1:10am UTC](https://forum.uipath.com/t/context-aware-anchor/121885/1 "2019-06-03T01:10:26Z")

</div>

Hi,

Can anybody give a real time example usage of Context Aware Anchor activity?I am getting that the difference between Anchor base and Context Aware Anchor activities is that Context Aware anchor activity doesn’t need an anchor that doesn’t change.

But can anybody provide me a working example to set text of the “First Name” field in the following URL by using First Name label as the anchor and the text box as the target?

[http://www.rpachallenge.com/](http://www.rpachallenge.com/)

I am not sure whether its a good approach to use “Context Aware Anchor” here because First Name field is dramatically changing its position all over the web page every time I reload the page.

Thanks,  
Asiri

---

<div class="post-metadata">

**Author:** ![lakshman](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/lakshman/32/523490_2.png) [@lakshman](https://forum.uipath.com/u/lakshman)\
**Post date:** [June 3, 2019, 1:18am UTC](https://forum.uipath.com/t/context-aware-anchor/121885/2 "2019-06-03T01:18:18Z")

</div>

@Asiri

For this RPA challenge, use **Anchor Base** Activity. Inside this activity use **Find Element** Activity and indicate that labels like FirstName, Last Name etc… and then right side use **Type Into** Activity to type text.

First it will find the label and then enter value into corresponding field.

---

<div class="post-metadata">

**Author:** ![Asiri](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/asiri/32/54749_2.png) [@Asiri](https://forum.uipath.com/u/Asiri)\
**Post date:** [June 3, 2019, 10:26pm UTC](https://forum.uipath.com/t/context-aware-anchor/121885/3 "2019-06-03T22:26:02Z")

</div>

@lakshman,

I have already implemented this using Anchor Base.I am trying to understand when to use “Context Aware Anchor Base”.

Thanks,  
Asiri

---

<div class="post-metadata">

**Author:** ![Asiri](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/asiri/32/54749_2.png) [@Asiri](https://forum.uipath.com/u/Asiri)\
**Post date:** [June 3, 2019, 11:19pm UTC](https://forum.uipath.com/t/context-aware-anchor/121885/4 "2019-06-03T23:19:41Z")

</div>

Hi Guys,

Did some research and my understanding is as follows,

When we don’t have a unique anchor, but if we know the rectangle area where our anchor will always appear and we have only our anchor of that control type in that area, we should use “Context aware anchor base” so we can spy the anchor correct.

Cheers,  
Asiri

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [February 20, 2020, 12:53am UTC](https://forum.uipath.com/t/context-aware-anchor/121885/5 "2020-02-20T00:53:07Z")

</div>

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
