Skip to content

Commit dbd783d

Browse files
author
Arne Tarara
committed
Merge branch 'green-metrics-tool'
2 parents feac70b + 31bb9fb commit dbd783d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

green-metrics-tool/nextcloud_docs_delete_user_and_file.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,11 @@ def create_user(playwright: Playwright, browser_name: str, username: str, passwo
3434
page.click("button[aria-label='Settings menu']")
3535
page.click("#core_users")
3636

37-
dialog = page.get_by_role("dialog")
38-
dialog.get_by_label("Close").click()
37+
try:
38+
dialog = page.get_by_role("dialog")
39+
dialog.get_by_label("Close").click(timeout=5000)
40+
except:
41+
pass
3942

4043
log_note('Deleting docs user')
4144
row = page.locator('tr[data-cy-user-row="docs_dude"]')

0 commit comments

Comments
 (0)