From f8ca9884ec724ba42277a27dcdba53db42e09268 Mon Sep 17 00:00:00 2001 From: ericbsd Date: Wed, 20 Nov 2024 08:51:28 -0400 Subject: [PATCH] Fixed some more xpaths --- tests/bdd/core/test_NAS_T1143.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/bdd/core/test_NAS_T1143.py b/tests/bdd/core/test_NAS_T1143.py index c57e53022df..6a7378a5207 100644 --- a/tests/bdd/core/test_NAS_T1143.py +++ b/tests/bdd/core/test_NAS_T1143.py @@ -124,13 +124,13 @@ def click_on_browser_files_click_on_bucket_then_click_on_the_test_folder(driver, """click on Browser Files, click on {bucket}, then click on the bucket.""" global my_bucket my_bucket = bucket - assert wait_on_element(driver, 10, '//span[text()="B2 Cloud Storage Buckets"]') + assert wait_on_element(driver, 10, '//h1[contains(text(),"B2 Cloud Storage Buckets")]') assert wait_on_element(driver, 7, '//a[text()="Browse Files"]', 'clickable') driver.find_element_by_xpath('//a[text()="Browse Files"]').click() assert wait_on_element(driver, 10, '//h1[text()="Browse Files"]') assert wait_on_element(driver, 10, '//div[@class="b2-browse-crumbs" and contains(.,"Buckets")]') - assert wait_on_element(driver, 10, f'//span[contains(text(),"{bucket} ")]', 'clickable') - driver.find_element_by_xpath(f'//span[contains(text(),"{bucket} ")]').click() + assert wait_on_element(driver, 10, f'//*[contains(text(),"{bucket} ")]', 'clickable') + driver.find_element_by_xpath(f'//*[contains(text(),"{bucket} ")]').click() assert wait_on_element(driver, 10, f'//a[text()="{bucket}"]', 'clickable') time.sleep(1)