diff --git a/test/appium/tests/atomic/dapps_and_browsing/test_browsing.py b/test/appium/tests/atomic/dapps_and_browsing/test_browsing.py index 3696dfe427..6b084645b5 100644 --- a/test/appium/tests/atomic/dapps_and_browsing/test_browsing.py +++ b/test/appium/tests/atomic/dapps_and_browsing/test_browsing.py @@ -80,7 +80,7 @@ class TestBrowsing(SingleDeviceTestCase): for entry in ('google.com', 'status.im'): browsing_view = dapp_view.open_url(entry) browsing_view.cross_icon.click() - dapp_view.remove_browser_entry_long_press('Google', clear_all=True) + dapp_view.remove_browser_entry_long_press('Status - Private', clear_all=True) home_view.relogin() home_view.dapp_tab_button.click() if not dapp_view.element_by_text('Browsed websites will appear here.').is_element_displayed(): diff --git a/test/appium/views/dapps_view.py b/test/appium/views/dapps_view.py index 5dae1114a9..13708f563f 100644 --- a/test/appium/views/dapps_view.py +++ b/test/appium/views/dapps_view.py @@ -29,7 +29,7 @@ class EnterUrlEditbox(BaseEditBox): class BrowserEntry(ChatElement): def __init__(self, driver, name): super(BrowserEntry, self).__init__(driver, name) - self.locator = self.Locator.xpath_selector('//*[@text="%s"]/..' % name) + self.locator = self.locator.text_part_selector(name) class EnsName(BaseEditBox):