From fa2cd734e46633f9ce527cda2476b6a272d5ffcb Mon Sep 17 00:00:00 2001 From: Nick Abalov Date: Mon, 19 Oct 2015 09:00:25 +0600 Subject: [PATCH] Small fix for input test --- Winium/TestApp.Test/py-functional/tests/test_commands.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Winium/TestApp.Test/py-functional/tests/test_commands.py b/Winium/TestApp.Test/py-functional/tests/test_commands.py index 8482c36..5e810ea 100644 --- a/Winium/TestApp.Test/py-functional/tests/test_commands.py +++ b/Winium/TestApp.Test/py-functional/tests/test_commands.py @@ -1,4 +1,5 @@ # coding: utf-8 +from time import sleep import pytest from selenium.common.exceptions import NoSuchElementException, NoAlertPresentException, WebDriverException from selenium.webdriver import ActionChains @@ -274,6 +275,7 @@ def test_send_keys_to_element(self): def test_send_keys_to_active_element(self): element = self.driver.find_element_by_id('MyTextBox') element.click() + sleep(0.5) # FIXME ActionChains(self.driver).send_keys(Keys.ENTER).perform() assert '\r\n' == element.text