From 75fda5ef044d8a7b24f70b90c48e432da8f9b325 Mon Sep 17 00:00:00 2001 From: cesar991 Date: Wed, 20 Jul 2016 11:52:52 +0200 Subject: [PATCH] Add recreate_collection function in collection_function.py --- tests/console/include/collection_functions.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/console/include/collection_functions.py b/tests/console/include/collection_functions.py index 12fdb5a318..13e419c98c 100644 --- a/tests/console/include/collection_functions.py +++ b/tests/console/include/collection_functions.py @@ -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() + +