fix deleteing dapps

Signed-off-by: Churikova Tetiana <churikova.tm@gmail.com>
This commit is contained in:
Churikova Tetiana 2019-10-14 12:14:10 +02:00
parent c872c5c487
commit 114b4da2d9
No known key found for this signature in database
GPG Key ID: 0D4EA7B33B47E6D8
2 changed files with 2 additions and 2 deletions

View File

@ -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():

View File

@ -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):