I tried to login on my mobile webbrowser. After passing my username as string, it clears automatically.
My code is
loginId.click();
loginId.sendKeys(userName);
The script fails only with the mobile browser. The login is a light box pop up.
I also tried javascript executor and actions. Nothing worked.