I am testing site with selenium and I need to send an e-mail to one of the fields. So far I am using this Java method:
String email = \"test@example.com\"
The following should work: String email = "test\u0040example.com";
Apologies for misreading the question earlier.
I think you will have to call sendKeys
using the proper values from the Keys
enum to simulate the way you get your at-sign. Use Keys.ALT
with your "v" in a chord:
sendKeys(Keys.chord(Keys.ALT, "v"));