Return-Path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=profusion-mobi.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=quIt5JRcBsSb05TkrCPsqtxRn3nUaFsLvvZGARYITN8=; b=NwWHKFDuln0RJD1SttxYySmlpc6OkQPtBrrMhNaSmpAddJEjHQFf8A0uivXPWNCEXe 3XQsvd2JT0z6lfyzSsEfk+bNg31yq4EGnmHnyfl3T1DzDBgXeBrZYU5OoFXSq3bJIMw5 +hlv0UQ0eHzIumgrNo0ivVfxTzOIjLnhuzWhsrGSgPOt17qFGWUkfyUtHBUvVea8VRIb uzx7AEF+K2oA8IW2r6YBZDUpc1A1BtEJdNxkxti+zbmiN2zqzWTZx//Pr7BZxmVGIws3 isfa4XF7rlcAaZzycHrF3Xz/ms3cUUANt08igFMKShc2aNauK7KFbB+LVlOkAJ2BOBic pDgg== From: Guilherme Campos Camargo Date: Wed, 28 Mar 2018 21:08:29 -0300 Message-Id: <20180329000832.12268-14-guicc@profusion.mobi> In-Reply-To: <20180329000832.12268-1-guicc@profusion.mobi> References: <20180329000832.12268-1-guicc@profusion.mobi> Subject: [Fuego] [PATCH 13/16] Move Selenium implicitly_wait() to SeleniumSession start List-Id: Mailing list for the Fuego test framework List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: fuego@lists.linuxfoundation.org Remove it from SeleniumCommand.exec(), given that "once set, it will be set for the life of the WebDriver object". implictly_wait() documentation: http://selenium-python.readthedocs.io/waits.html#implicit-waits Signed-off-by: Guilherme Campos Camargo --- engine/tests/Functional.fuegotest/test_run.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/tests/Functional.fuegotest/test_run.py b/engine/tests/Functional.fuegotest/test_run.py index f62ebc1..91d0666 100755 --- a/engine/tests/Functional.fuegotest/test_run.py +++ b/engine/tests/Functional.fuegotest/test_run.py @@ -41,7 +41,6 @@ class SeleniumCommand: def exec(self, selenium_ctx): self.driver = selenium_ctx.driver self.driver.refresh() - self.driver.implicitly_wait(3) LOGGER.debug('Executing Selenium Command \'%s\'', self.__class__.__name__) @@ -422,9 +421,10 @@ class SeleniumContainerSession(): options.add_argument('window-size=1200x600') self.driver = webdriver.Chrome(chrome_options=options) - self.driver.get(self.root_url) + self.driver.implicitly_wait(3) self.driver.get(self.root_url) + LOGGER.debug('Started a Selenium Session on %s', self.root_url) return True -- 2.16.2