made changes in telenium_process

This commit is contained in:
cis 2021-07-16 21:31:27 +05:30
parent bcf662b6d2
commit 52b6d14ab2
No known key found for this signature in database
GPG Key ID: 11DC6F36E8B65B24

View File

@ -79,7 +79,7 @@ class TeleniumTestProcess(TeleniumTestCase):
"""this method is for checking scroll"""
start = time()
while True:
scroll_distance = self.cli.getattr('//ContentNavigationDrawer//ScrollView[0]', 'scroll_y')
scroll_distance = self.cli.getattr(selector, 'scroll_y')
if scroll_distance > 0.0:
self.assertGreaterEqual(scroll_distance, 0.0)
return True