-
Notifications
You must be signed in to change notification settings - Fork 758
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Input Text sometimes doesn't send all the keys #1285
Comments
Would you be able to demonstrate the problem with a example that I can also run? If not, could you run the test with the |
@aaltat We're not doing anything unusual with the Input Text - generated data is always type of string. I would also say that this is very intermittent - we have 2.2k tests which use the "Input Text" keyword maybe 10k times per run. When I use the Trace log level I cannot see anything (the keyword now passes when running locally.) I am a bit worried to use this in our overnight test config (as the output file would be just too big) but I will leave this in my local config and let you know if I notice anything. By the way, I also updated Chromedriver to 2.45 - not sure if the issue could be on webdriver side. |
I would have been interested to see what the Selenium logging is saying, which are also visible This feels quite a typical problem, example input element might be visible and enabled but it not ready to receive the text, because some JavaScript is running in the background which can make you lost few keys. Also it might be that |
Do you still think that this is a problem in the SeleniumLibrary or can we close the issue? |
Closing due inactivity. |
I am also experiening this. Please reopen. It happens with a very simple test case, but only intermitably. My guess is it's a timing issue
|
Next time please open a new issue. But would you be able to demonstrate the problem with a example that I can also run? If not, could you run the test with the |
This kind of error can occur due to a bug in the app itself. It might be that it gets characters so fast that it doesn't handle them. I guess it would be possible to enhance Input Text to accept a delay it uses between characters it sends, but it would feel a bit strange to do something only to workaround a bug in the tested app. Notice also that instead of |
Steps to reproduce the issue
Input Text id=MyElementId 53.63
Code example:
${myValue} = Set Variable 53.63
Wait Until Element is Visible id=MyElementId ${global_timeout}
Wait Until Element is Enabled id=MyElementId ${global_timeout}
Input Text id=MyElementId ${myValue}
Textfield Value Should Be id=MyElementId ${myValue}
Expected result:
Actual result:
I have a very simple (and really not clean) workaround in my SeleniumLibrary extension class now which sends the keys checks for the element value and if the value differs from the original text it clears the element value and tries again.
Environment
Browser: headless chrome=71.0.3578.80
Browser driver: chromedriver=2.44.609538
Operating System: Windows Server 2012 R2
Libraries
The text was updated successfully, but these errors were encountered: