mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Add recreate_collection function in collection_function.py
This commit is contained in:
parent
03126045d6
commit
75fda5ef04
@ -91,3 +91,11 @@ def create_directory_in_collection(driver,collection_name,directory_name):
|
||||
driver.find_element_by_id('text-dirname').send_keys(directory_name)
|
||||
driver.find_element_by_id('submit-crt').click()
|
||||
|
||||
def recreate_collection(driver,collection_name):
|
||||
|
||||
search_collection(driver,collection_name)
|
||||
driver.find_element_by_xpath('//*[@id="button-recreate_file"]').click()
|
||||
alert = driver.switch_to_alert()
|
||||
alert.accept()
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user