mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
fix } syntax
This commit is contained in:
parent
e0969c87bd
commit
f87693075e
1 changed files with 1 additions and 1 deletions
|
|
@ -172,7 +172,7 @@ def verify_select_filters(driver, page_name: str, filter_items: list):
|
|||
# Verify that elements are all hidden
|
||||
# If not return false, else reset and send true
|
||||
check_result = driver.execute_script(
|
||||
f"""const select{item['id']} = document.querySelector("[data-{page_name}-setting-select-dropdown-btn='{item["id"]}'][value='{item["value"]}']');""" + "if(!select{item['id']}) { return false };" + f"""select{item['id']}.setAttribute('value', '{item["update_value"]}');select{item['id']}.click(); const select{item['id']}Match = document.querySelectorAll("[data-{page_name}-list-item][class*='hidden']");""" + "if (select{item['id']}Match.length === 0) { return false };" + f"""select{item['id']}.setAttribute('value', '{item["value"]}');select{item['id']}.click();return true;"""
|
||||
f"""const select{item['id']} = document.querySelector("[data-{page_name}-setting-select-dropdown-btn='{item["id"]}'][value='{item["value"]}']');if(!select{item['id']})""" + "{ return false };" + f"""select{item['id']}.setAttribute('value', '{item["update_value"]}');select{item['id']}.click(); const select{item['id']}Match = document.querySelectorAll("[data-{page_name}-list-item][class*='hidden']");if (select{item['id']}Match.length === 0)""" + "{ return false };" + f"""select{item['id']}.setAttribute('value', '{item["value"]}');select{item['id']}.click();return true;"""
|
||||
)
|
||||
|
||||
if not check_result:
|
||||
|
|
|
|||
Loading…
Reference in a new issue