Send keys are not working as designed

Hi,

I did sendkeys to a text box. I want to do sendkeys for textfield.sendkeys(testing123)
but sendkeys are sending testing123g.

how to resolve this problem.

Pleasr reply as soon as possible

@slakshmiics, can you provide more detail? Is there anything in the textfield before you start?

provide some wait …may be it will work…
Thread.sleep(5000);

After click on text field , use clear method to clear the screen then wait for 2 to 3 second
and use send key method
Like
driver.findElement(By.id(“XYZ”)).click();
driver.findElement(By.id(“XYZ”)).clear();
Thread.Sleep(3000)l
driver.findElement(By.id(“XYZ”)).sendKeys(“testing123”);