Click activity fails

studio
core_activities

#1

Scenario: bot trying to click on a user name on the portal, the target value is Ancona, Cynthia d’

First I scrape it off the screen as a table, it grabs Ancona, Cynthia d’, no issues, exactly what I expect, then I use assign to set this value to a variable and use the variable in dynamic selector as webctrl aaname=’*"+name+"’ for click activity. Here it fails.

When I check in locals it seems robot is selecting it as Ancona, Cynthia d&apos

I need advice on how to keep the name as assigned without apostrophe getting changed to &apos.

Steps to reproduce: Scrape value off screen, click a value using scraped data as input

Current Behavior:

Expected Behavior:

Studio/Robot/Orchestrator Version: v2018.2.2

Last stable behavior:
Last stable version:
OS Version: Win10
Others if Relevant: (workflow, logs, .net version, service pack, etc):
image


#2

@Ancher can you share the link which you are scraping


#3

it’s internal portal, I cannot(


#4

@Ancher try this <webctrl omit:aaname=’* ’ tag=‘P’


#5

Hey @Ancher,
can you please show me how you’re using the variable in the selector. I may be able to help you.


#6

<webctrl aaname=’*"+name+"’ />


#7

Seems like the Screenshot didn’t upload properly!
It’s showing me a blank comment! Could you do it again please


#8

@Ancher don’t use open < and close > tag in the comments


#9

@Ancher,
this is a little weird, I’m unable to see your screenshot!


#10

Or you can escape it. Like \< and \>


#11

image


#12

Hey @Ancher ,
Try using name=’ “+name.Substring(name.Length-1)+”* ’