[Fuego] [PATCH 07/16] Add Back() Selenium Command

Tim.Bird at sony.com Tim.Bird at sony.com
Fri Mar 30 22:52:13 UTC 2018



> -----Original Message-----
> From: Guilherme Campos
> Camargo
> Sent: Wednesday, March 28, 2018 5:08 PM
> To: fuego at lists.linuxfoundation.org
> Subject: [Fuego] [PATCH 07/16] Add Back() Selenium Command
> 
> That will go one level back in the browser history.

Please don't split a sentence between the commit summary and commit description.

Patch content is OK.
 -- Tim

> 
> Signed-off-by: Guilherme Campos Camargo <guicc at profusion.mobi>
> ---
>  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
> 
> _______________________________________________
> Fuego mailing list
> Fuego at lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/fuego


More information about the Fuego mailing list