sendkeys() sometimes truncate the entered text
I’m using sendkeys method to input some text, like “DiscardTestUlitiscayle”, but some time it will input “DiscardTestUlit” instead, miss last -XXXXXX. then I clear the text field and try to input one more time, but still same error. Anyone know the reason? and how to resolve the issue? Thanks in advance!
There could be two reason that I suspect here
– You are doing a multithread test run where at the same time you tests are trying to type something on two different browsers. That dosent seem to be the case here.
How can you fix it?
Try these one by one
– Before doing SendKeys do a.click
WebElement element = driver.FindElement(<Yur locator>);
Try the two methods and let us know.