mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Add delete_user function in user_functions
This commit is contained in:
parent
e2b522c28d
commit
d01c96ce6f
@ -187,4 +187,9 @@ def create_user_profile(driver,profile_name,bit_list=[]):
|
||||
driver.find_element_by_xpath('//*[@id="checkbox-pandora_management"]').click()
|
||||
|
||||
driver.find_element_by_id("submit-crt").click()
|
||||
|
||||
|
||||
def delete_user(driver,user_name):
|
||||
search_user(driver,user_name)
|
||||
driver.find_element_by_xpath('//*[@id="table3-0-6"]/a[3]/img').click()
|
||||
alert = driver.switch_to_alert()
|
||||
alert.accept()
|
||||
|
Loading…
x
Reference in New Issue
Block a user