From 291cec34ba9b3774dcc5a179e8658331a3fc443d Mon Sep 17 00:00:00 2001 From: Fanny Date: Fri, 16 Feb 2018 22:13:49 -0300 Subject: [PATCH] Updated switch_to_window to recent version (#196) * update switch_to_window to recent version * fix #195 --- fxapom/pages/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fxapom/pages/base.py b/fxapom/pages/base.py index ec6141a..275cb0f 100644 --- a/fxapom/pages/base.py +++ b/fxapom/pages/base.py @@ -14,7 +14,7 @@ class Base(Page): self._main_window_handle = self.selenium.current_window_handle def switch_to_main_window(self): - self.selenium.switch_to_window(self._main_window_handle) + self.selenium.switch_to.window(self._main_window_handle) def close_window(self): self.selenium.close()