Autocomplete text boxes may need more time to finish updating

This commit is contained in:
Michael Mintz 2018-08-28 02:13:02 -04:00
parent 8d842be118
commit 7597ae62fc
1 changed files with 2 additions and 0 deletions

View File

@ -560,6 +560,8 @@ class BaseCase(unittest.TestCase):
try:
if not new_value.endswith('\n'):
element.send_keys(new_value)
if settings.WAIT_FOR_RSC_ON_PAGE_LOADS:
self.wait_for_ready_state_complete()
else:
new_value = new_value[:-1]
element.send_keys(new_value)