I was trying to do write a test a case for a website that takes in the Java code , compiles it and runs it. However, while writing the test case , the text-area that takes input did not have all the characters. I saw it was missing '(' and '!'. I tried using the uni-code characters as well as ascii characters.
Here is code snippet:
textarea.sendKeys("public class HelloWorld{public static String greet");
textarea.sendKeys("\u0028"+"\u0029");
textarea.sendKeys("{ return "+"\"hello world"+"\u0021"+"\";}}");
Output: "}}public class HelloWorld{public static String greet){return "hello world
I also believe '!' is making cursor to move to starting position.