# Selector bug

**URL:** <https://forum.uipath.com/t/selector-bug/124257>\
**Category:** Help\
**Tags:** excel, uiautomation, activities\
**Created:** [June 11, 2019, 1:17pm UTC](https://forum.uipath.com/t/selector-bug/124257 "2019-06-11T13:17:33Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Youssef](https://avatars.discourse-cdn.com/v4/letter/y/df788c/32.png) [@Youssef](https://forum.uipath.com/u/Youssef)\
**Post date:** [June 11, 2019, 1:17pm UTC](https://forum.uipath.com/t/selector-bug/124257/1 "2019-06-11T13:17:33Z")

</div>

Hello everyone,  
Though looping in an excel file, I am opening a web app , opening files number and clicking on a specific space to change the amount of money.

The problem is:  
On 5 files, some can be changed others cannot while using the same space to modify the amount of money.

Any explanation?

---

<div class="post-metadata">

**Author:** ![Palaniyappan](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/palaniyappan/32/524095_2.png) [@Palaniyappan](https://forum.uipath.com/u/Palaniyappan)\
**Post date:** [June 11, 2019, 1:18pm UTC](https://forum.uipath.com/t/selector-bug/124257/2 "2019-06-11T13:18:57Z")

</div>

Fine  
Can i have a view on the selector once… buddy  
Make sure that the dynamic part is replaced with wildcards value in the selector attribute  
Cheers @Youssef

---

<div class="post-metadata">

**Author:** ![Youssef](https://avatars.discourse-cdn.com/v4/letter/y/df788c/32.png) [@Youssef](https://forum.uipath.com/u/Youssef)\
**Post date:** [June 11, 2019, 1:20pm UTC](https://forum.uipath.com/t/selector-bug/124257/3 "2019-06-11T13:20:00Z")

</div>

“”

---

<div class="post-metadata">

**Author:** ![Youssef](https://avatars.discourse-cdn.com/v4/letter/y/df788c/32.png) [@Youssef](https://forum.uipath.com/u/Youssef)\
**Post date:** [June 11, 2019, 1:21pm UTC](https://forum.uipath.com/t/selector-bug/124257/4 "2019-06-11T13:21:01Z")

</div>

![image](https://global.discourse-cdn.com/uipath/original/3X/1/a/1a41530e97d2d2476a1b2bac9bee7fe6ff66ff61.png)  
 ![image](https://global.discourse-cdn.com/uipath/original/3X/1/3/1365b9e154f7d361728ac3294eb2dd5bacd9c9d6.png)

---

<div class="post-metadata">

**Author:** ![Palaniyappan](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/palaniyappan/32/524095_2.png) [@Palaniyappan](https://forum.uipath.com/u/Palaniyappan)\
**Post date:** [June 11, 2019, 1:23pm UTC](https://forum.uipath.com/t/selector-bug/124257/5 "2019-06-11T13:23:51Z")

</div>

fine lets try to pass the value of row(“Cause-dommage”).ToString one by one to the selector manually and check which one is getting failed and which one is working fine…  
Kindly take a note on the selector for each value of it  
The reason is we are facing issue with just five values so it would be easy to check it manually …that would let us know where we are lagging  
this can be sorted out buddy  
Cheers @Youssef

---

<div class="post-metadata">

**Author:** ![Youssef](https://avatars.discourse-cdn.com/v4/letter/y/df788c/32.png) [@Youssef](https://forum.uipath.com/u/Youssef)\
**Post date:** [June 11, 2019, 1:57pm UTC](https://forum.uipath.com/t/selector-bug/124257/6 "2019-06-11T13:57:09Z")

</div>

Same thing does not work

---

<div class="post-metadata">

**Author:** ![Youssef](https://avatars.discourse-cdn.com/v4/letter/y/df788c/32.png) [@Youssef](https://forum.uipath.com/u/Youssef)\
**Post date:** [June 11, 2019, 1:57pm UTC](https://forum.uipath.com/t/selector-bug/124257/7 "2019-06-11T13:57:34Z")

</div>

When I treated the error file individually and indicated its ID it worked fine

---

<div class="post-metadata">

**Author:** ![Palaniyappan](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/palaniyappan/32/524095_2.png) [@Palaniyappan](https://forum.uipath.com/u/Palaniyappan)\
**Post date:** [June 11, 2019, 2:02pm UTC](https://forum.uipath.com/t/selector-bug/124257/8 "2019-06-11T14:02:34Z")

</div>

So the issue is with the selector right…  
usually we need to pass the variable to the selector and you have made it correct  
but the place where we have this change is wrong  
we need to pass the whole selector as a string between double quotes and paste it in the selector property of the activity rather making changes in the selector editor, as it wont take the variable into consideration…  
Kindly try to send the selector as a string between double quotes and mention that in selector property as input  
more info on this

> [@How to use a variable in: \<webctrl aaname=VARIABLE /\>](https://forum.uipath.com/t/how-to-use-a-variable-in-webctrl-aaname-variable/1192/47):
>
> @ClaytonM Now I got… Many Thanks slight_smile

Cheers @Youssef

---

<div class="post-metadata">

**Author:** ![Youssef](https://avatars.discourse-cdn.com/v4/letter/y/df788c/32.png) [@Youssef](https://forum.uipath.com/u/Youssef)\
**Post date:** [June 11, 2019, 4:04pm UTC](https://forum.uipath.com/t/selector-bug/124257/9 "2019-06-11T16:04:53Z")

</div>

Thanks I got the problem.  
He is actually reading a string that contains an (‘) as '  
How to make the robot change the string that contains (’) in the excel file with &apos ?

---

<div class="post-metadata">

**Author:** ![Palaniyappan](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/palaniyappan/32/524095_2.png) [@Palaniyappan](https://forum.uipath.com/u/Palaniyappan)\
**Post date:** [June 11, 2019, 4:59pm UTC](https://forum.uipath.com/t/selector-bug/124257/10 "2019-06-11T16:59:21Z")

</div>

Fine  
can i have an example of how the data looks like in excel if possible  
Cheers @Youssef

---

<div class="post-metadata">

**Author:** ![Palaniyappan](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/palaniyappan/32/524095_2.png) [@Palaniyappan](https://forum.uipath.com/u/Palaniyappan)\
**Post date:** [June 11, 2019, 5:22pm UTC](https://forum.uipath.com/t/selector-bug/124257/11 "2019-06-11T17:22:58Z")

</div>

usually we can handle replace string with this syntax  
make use of it as per your requirement  
**Yourvariable.ToString.Replace(“Word to replace”,“Word to be replaced with”)**

Cheers @Youssef

---

<div class="post-metadata">

**Author:** ![Palaniyappan](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/palaniyappan/32/524095_2.png) [@Palaniyappan](https://forum.uipath.com/u/Palaniyappan)\
**Post date:** [June 11, 2019, 5:23pm UTC](https://forum.uipath.com/t/selector-bug/124257/12 "2019-06-11T17:23:14Z")

</div>

any issues still buddy @Youssef

---

<div class="post-metadata">

**Author:** ![Youssef](https://avatars.discourse-cdn.com/v4/letter/y/df788c/32.png) [@Youssef](https://forum.uipath.com/u/Youssef)\
**Post date:** [June 11, 2019, 10:07pm UTC](https://forum.uipath.com/t/selector-bug/124257/13 "2019-06-11T22:07:39Z")

</div>

![image](https://global.discourse-cdn.com/uipath/original/3X/9/2/92e9272b386bb9748d6de0e67c645a4347c39256.png)

For instance, If I want to replace all sentences like the first sentence in the third column with a new string.

What is the actvity for the syntax ?
