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=JvoJMSFukn7Z8kPC1f+S/DlYLJtJHP1GtI3/lf9myNU=; b=TeFLVw8WJDka9UDfZz0nsuHKikbHBMWgO3I45t960G603bctbDMVGynSz6OQ80vq/s 3ii9JTc7ATVyvhXuaI+TbwqTAycsVj+j5fimWC9vwEJ9iBB/bBpr+YOqExgGplBjcJOy GOEDaTHXgh10d8lLAsA/PbCStUfta2P4IMwxSNty+7fG2oAPONjslx16yvFDn34qHJeX J1SQ9XiosOVycrg4dEv//t6mqjT2kPlZWkDf5k/IataqugS/QaMFU0fG+y9kh7eGqyWq 7qY9H4CwFcmLWv7JWSbnSS5tzPkRcCtJ9OOKbWOIU74D0i+nE1m7lsebSWXEbSFaiLlV aUYg== From: Guilherme Campos Camargo Date: Wed, 28 Mar 2018 21:08:23 -0300 Message-Id: <20180329000832.12268-8-guicc@profusion.mobi> In-Reply-To: <20180329000832.12268-1-guicc@profusion.mobi> References: <20180329000832.12268-1-guicc@profusion.mobi> Subject: [Fuego] [PATCH 07/16] Add Back() Selenium Command List-Id: Mailing list for the Fuego test framework List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: fuego@lists.linuxfoundation.org That will go one level back in the browser history. Signed-off-by: Guilherme Campos Camargo --- engine/tests/Functional.fuegotest/test_run.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/engine/tests/Functional.fuegotest/test_run.py b/engine/tests/Functional.fuegotest/test_run.py index fa68858..851074f 100755 --- a/engine/tests/Functional.fuegotest/test_run.py +++ b/engine/tests/Functional.fuegotest/test_run.py @@ -97,6 +97,16 @@ class CheckText(SeleniumCommand): return result == self.expected_result +class Back(SeleniumCommand): + def exec(self, selenium_ctx): + super().exec(selenium_ctx) + + LOGGER.debug(' Going back') + self.driver.back() + + return True + + class ShExpect(): BASH_PATTERN = 'test_run_pr1:#' COMMAND_RESULT_PATTERN = re.compile('^([0-9]+)', re.M) -- 2.16.2