From 7bea71aaf9365fbc2088e10462600553f38edcbf Mon Sep 17 00:00:00 2001 From: Nrupesh29 Date: Tue, 14 Apr 2020 01:44:22 -0700 Subject: [PATCH] Fix test_clear flaky functional test --- test/functional/ios/webdriver_tests.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/functional/ios/webdriver_tests.py b/test/functional/ios/webdriver_tests.py index 51c7bc58..e3672161 100644 --- a/test/functional/ios/webdriver_tests.py +++ b/test/functional/ios/webdriver_tests.py @@ -80,6 +80,8 @@ def test_clear(self): input_text = 'blah' el.click() el.send_keys(input_text) + self.driver.hide_keyboard() + # TODO Needs to get the element again to update value in the element. Remove below one line when it's fixed. el = self.driver.find_elements_by_class_name('XCUIElementTypeTextField')[0] text = el.get_attribute('value')