From e30a547039c91df950cfffcbf9746858ee663a3b Mon Sep 17 00:00:00 2001 From: Churikova Tetiana Date: Tue, 8 Oct 2019 10:28:52 +0200 Subject: [PATCH] Return boolean Signed-off-by: Churikova Tetiana --- .../tests/atomic/account_management/test_profile.py | 4 ++-- test/appium/views/base_element.py | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/test/appium/tests/atomic/account_management/test_profile.py b/test/appium/tests/atomic/account_management/test_profile.py index 09aaa9cd01f..dc9da2f22f1 100644 --- a/test/appium/tests/atomic/account_management/test_profile.py +++ b/test/appium/tests/atomic/account_management/test_profile.py @@ -109,7 +109,7 @@ def test_mobile_data_usage_settings(self): self.verify_no_errors() - @marks.testrail_id(6229) + @marks.testrail_id(5454) @marks.critical def test_user_can_remove_profile_picture(self): signin_view = SignInView(self.driver) @@ -535,7 +535,7 @@ def test_switch_mailserver(self): @marks.account class TestProfileMultipleDevice(MultipleDeviceTestCase): - @marks.testrail_id(6835) + @marks.testrail_id(5762) @marks.high def test_pair_devices_sync_one_to_one_contacts(self): self.create_drivers(2) diff --git a/test/appium/views/base_element.py b/test/appium/views/base_element.py index 725db847bb0..ea8504b874c 100644 --- a/test/appium/views/base_element.py +++ b/test/appium/views/base_element.py @@ -158,7 +158,13 @@ def image(self): return Image.open(BytesIO(base64.b64decode(self.find_element().screenshot_as_base64))) def attribute_value(self, value): - return self.find_element().get_attribute(value) + attribute_value = self.find_element().get_attribute(value) + if attribute_value == 'true' or 'True': + return True + elif attribute_value == 'false' or 'False': + return False + else: + return attribute_value def is_element_image_equals_template(self, file_name: str = ''): if file_name: