Thanks for your response. I tried element.click also, but I did not find any change.
element.click() : placing the cursor in middle of the text (if is there any text exist in the textbox).
element.clear() : placing the cursor in the middle of the text (if is there any text exist in the textbox) and then removing only the characters exist in left side (behaving link backspace) and right side characters still exist.
ex: Assume 100 is existing in the text box and I want to remove 100 and type 55 in the text box.
For this I tried below 2 ways and got same result.
1.
element.click();
element.clear();
element.setValue(“55”);
OR
2.
element.clear();
element.setValue(“55”);
Result: Cursor placing in middle(next to 1 and before 00) and removing only 1 then typing 55 and finally it results 5500 instead of 55