From f48f43ca3e931719d8344e637ff1b6e5f6c59183 Mon Sep 17 00:00:00 2001 From: cis Date: Tue, 6 Jul 2021 22:14:55 +0530 Subject: [PATCH] updated Xpaths --- src/bitmessagekivy/tests/test_setting_screen.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/bitmessagekivy/tests/test_setting_screen.py b/src/bitmessagekivy/tests/test_setting_screen.py index 0ee029b6..0804420b 100644 --- a/src/bitmessagekivy/tests/test_setting_screen.py +++ b/src/bitmessagekivy/tests/test_setting_screen.py @@ -8,11 +8,14 @@ class SettingScreen(TeleniumTestProcess): """Show Setting Screen""" print("=====================Test -Show Setting Screen=====================") self.cli.sleep(3) - # self.cli.wait_click("//MDToolbar/BoxLayout[0]/MDActionTopAppBarButton[0]", timeout=20) - self.cli.click_on('//MDToolbar/BoxLayout[0]/MDActionTopAppBarButton[0]') + # this is for opening Nav drawer + self.cli.click_on('//MDActionTopAppBarButton[@icon=\"menu\"]') self.cli.sleep(3) + # this is for scrolling Nav drawer self.cli.drag("//NavigationItem[@text=\"Sent\"]", "//NavigationItem[@text=\"Inbox\"]", 1) self.cli.sleep(3) - self.cli.click_on('//NavigationItem[7]') + # this is for opening setting screen + self.cli.click_on('//NavigationItem[@text=\"Settings\"]') self.cli.sleep(2) + # Checking current screen self.assertExists("//Setting[@name~=\"set\"]", timeout=2)