Return boolean

Signed-off-by: Churikova Tetiana <churikova.tm@gmail.com>
This commit is contained in:
Churikova Tetiana 2019-10-08 10:28:52 +02:00
parent 284f9bffed
commit e30a547039
No known key found for this signature in database
GPG Key ID: 0D4EA7B33B47E6D8
2 changed files with 9 additions and 3 deletions

View File

@ -109,7 +109,7 @@ class TestProfileSingleDevice(SingleDeviceTestCase):
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 @@ class TestProfileMultipleDevice(MultipleDeviceTestCase):
@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)

View File

@ -158,7 +158,13 @@ class BaseElement(object):
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: