Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgpatel-fr <44170243+gpatel-fr@users.noreply.github.com>2022-07-19 01:14:44 +0300
committergpatel-fr <44170243+gpatel-fr@users.noreply.github.com>2022-07-19 01:14:44 +0300
commit1041695c1685f542475e66e2e90517dd2939c10f (patch)
treeaef64d29704c3af19705e06e4647e9ec2750f742
parentd716051cdca941f13c0060b6bcc9b5ac3a3f8ee5 (diff)
fix gui tests following Selenium removing find_elements_by_* methods in 4.3.0
-rw-r--r--guiTests/guiTest.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/guiTests/guiTest.py b/guiTests/guiTest.py
index 629d410ce..b879fdc68 100644
--- a/guiTests/guiTest.py
+++ b/guiTests/guiTest.py
@@ -139,14 +139,14 @@ wait_for_load(10, By.ID, "save").click()
# Run the backup job and wait for finish
wait_for_load(10, By.LINK_TEXT, BACKUP_NAME).click()
-[n for n in driver.find_elements_by_xpath("//dl[@class='taskmenu']/dd/p/span[contains(text(),'Run now')]") if n.is_displayed()][0].click()
+[n for n in driver.find_elements("xpath", "//dl[@class='taskmenu']/dd/p/span[contains(text(),'Run now')]") if n.is_displayed()][0].click()
wait_for_text(60, "//div[@class='task ng-scope']/dl[2]/dd[1]", "(took ")
# Restore
-if len([n for n in driver.find_elements_by_xpath(u"//span[contains(text(),'Restore files \u2026')]") if n.is_displayed()]) == 0:
+if len([n for n in driver.find_elements("xpath", u"//span[contains(text(),'Restore files \u2026')]") if n.is_displayed()]) == 0:
wait_for_load(10, By.LINK_TEXT, BACKUP_NAME).click()
-[n for n in driver.find_elements_by_xpath(u"//span[contains(text(),'Restore files \u2026')]") if n.is_displayed()][0].click()
+[n for n in driver.find_elements("xpath", u"//span[contains(text(),'Restore files \u2026')]") if n.is_displayed()][0].click()
wait_for_load(10, By.XPATH, "//span[contains(text(),'" + SOURCE_FOLDER + "')]") # wait for filelist
time.sleep(1) # Delay so page has time to load
wait_for_load(10, By.XPATH, "//restore-file-picker/ul/li/div/a[2]").click() # select root folder checkbox