Speciial keys syntax error

Hello i am trying to use type into activity in a browser

I am typing in this line /Bilder_Bil[@RESOURCENAME = “Bilde_av_adasrapport.png” AND @ServiceOrdre_Nummer = “0000599349”]

but it ffailes and says Type Into ‘Advanced’: Special keys syntax error. Encountered invalid special key action at text position: 13.

1 Like

@langsem

Enable the Stimulate Click from properties of TypeInto

OR
You can use Set text activity also

You are fine to go

Hope this helps you

Thanks

2 Likes

Hi @langsem

I think you can also escape [ with another [, like so:

[[
6 Likes

I am using the uiautmation.next

Simulate Click??? I do not see such an option. Where exactly can this be found?

1 Like

In my case I used the TypeInto activity. My text string contained two special characters of [ and ] or square brackets. I replaced the special characters in the string being written with the recommended double brackets as @langsem mentioned above. Here is how I did this:

inStringVar.Replace("[","[[").Replace("]","]]")

where inStringVar was the name of the variable I was using in the TypeInto activity.

4 Likes

@grosner

Oops, Sorry It’s Stimulate Type, TypoError

For Click activity it is Stimulate Click

Thanks

1 Like

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