Support > Forums > OpenBots Studio > Special characters causing problem in web form

Special characters causing problem in web form

Vaughn Book

  • Reporter
  • Calender Icon November 01,2021 at 11:42 PM

I'm trying to use the "Native Browser Set Text" command to fill in the password field on a web page. The password contains the special characters "@" ,">" and "(". When I run the automation, I get the following in the log:

  • [INF] Running Line 4: Native Browser Set Text [Text '"x@xx>xxxxx(x"' - '"XPath" = "/html/body/div/form/div[2]/input"' - Instance Name 'defaultBrowser']
  • [INF] Result Code: Error
  • [ERR] Error: System.ArgumentException: Group delimiters are not balanced.

If I pass in a string without special characters, the automation seems to get passed this step without a problem.

Any help is appreciated.

Thanks.

This forum has 317 topics, 687 replies, and was last updated 4 months ago by Nataly Alvarado...

Nataly Alvarado...

  • Participant
  • Calender Icon November 04,2021 at 3:04 PM

Hi Vaughn,

Thanks for reporting this case. It will be resolved for upcoming iterations.

In the meantime, a workaround to allow "x@xx>xxxxx(x" as input for the Native Browser Set Text command, please follow the below steps:

  1. Create a new string variable
  2. Set the variable to "x@xx>xxxxx{(}x". By enclosing the open parenthesis in curly brackets, you will be scaping the special character and avoid the error message
  3. Set the variable as input for the Native Browser Set Text command

You are not authorized to reply, please click here to login and add your reply to this topic.