I’m using the Selenium server to run several suites of tests, and I need to modify a couple of values in each test using the userContentTransform option.
In the Selenium server command line help, it doesn’t give any examples of the format (except a literal string replacement). It also doesn’t mention which regular expression engine is running behind the scenes. Short of doing extensive research, I would like to find out what options are available to me.
Can someone provide insight into the format and options for the userContentTransform regex? (e.g. whether to provide leading and trailing slashes, whether regex flags work, and which regex features are supported.) Also, if anyone knows which engine is running behind the scenes, that would be enormously helpful.
Thanks.
It’s Java’s
java.util.regex.Patternsyntax. The code in question isorg.openqa.selenium.server.InjectionHelper.writeDataWithUserTransformations(), and it usesjava.lang.String.replaceAll()to do the job.