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=A8mkXESQh+j1/8g1gvBrQI7fCoULx+nxupccJj7kvyeokcHPSyHPAxZxhDuTAcB64e DD1koYIN/0hbLOv4Rb6ojmucOPWlWPFiJkK0rQTJtdUg7NTM/Synv8wd8atAp0z9e8dL cQjSUSE+co9VD8CkjVSaSYY/1twTyOO3Tj036MlZeR/dCMcnvbpQwvNBbiTaotBRDK02 hYGSf6EUgXJ+wBPNHYIC50aUfXjzguRRtQBjyEHkv8uGmUOcHaz38gzEbPCksaxHeuse L2+/Qv0MqgZ8Y7bFjj2McAH848BndnMqC6Svnh5B4kVXfXjKxoReFZwnjIa0ORZ/okt7 9FDw== From: Guilherme Campos Camargo Date: Wed, 7 Mar 2018 16:54:56 -0300 Message-Id: <20180307195459.16757-9-guicc@profusion.mobi> In-Reply-To: <20180307195459.16757-1-guicc@profusion.mobi> References: <20180307195459.16757-1-guicc@profusion.mobi> Subject: [Fuego] [PATCH 08/11] 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