I’m trying to scrape a list of new articles. My routine works except when the link includes special character (such as “&”, or “,”)
The way I am targeting the link to click on is to using the aaname of the element using row(“Column1”).ToString which I’ve scraped into a table in a previous step. How do I fix this so that the robot can target the correct aaname?
Basically, if I’m passing in “Acme & Beta announce joint venture” into this element, what do I need to replace “&” with? Is it just an escape character?
[current line of code]:
```"<webctrl aaname='"+row("Column1").ToString+"' parentid='main-container' tag='A' />"
For those playing along, I did the replace as noted using .replace (you can also do additional replaces with .replace(x,y).replace(a,b) etc… , yay), then passed the string below into an element so I could target an aaname