How can I enter a phone number into a text field

I am not able to enter all number in a text field . !

driver.findElement(By.xpath("//[@text=‘7’]")).click();
driver.findElement(By.xpath("//
[@text=‘7’]")).click();
driver.findElement(By.xpath("//[@text=‘2’]")).click();
driver.findElement(By.xpath("//
[@text=‘2’]")).click();
driver.findElement(By.xpath("//[@text=‘5’]")).click();
driver.findElement(By.xpath("//
[@text=‘4’]")).click();
driver.findElement(By.xpath("//[@text=‘9’]")).click();
driver.findElement(By.xpath("//
[@text=‘6’]")).click();
driver.findElement(By.xpath("//[@text=‘9’]")).click();
driver.findElement(By.xpath("//
[@text=‘7’]")).click();
driver.findElement(By.xpath("//*[@text= ‘REQUEST OTP’]")).click();

This above is my code , I am not able to type 77 instead its taking 7225

@soujanya
try android pressKeyCode

Why don’t you use driver.findElement(By.id(text_field_id)).sendKeys(“xxxx”);?

Thank you for your views . I was able to enter this number using touch action class

I did try this way also however it didnt work , but touch action worked well .

@soujanya
but if you change the device touchAction may fail