mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Add delete_user function in user_functions
This commit is contained in:
parent
e2b522c28d
commit
d01c96ce6f
@ -188,3 +188,8 @@ def create_user_profile(driver,profile_name,bit_list=[]):
|
|||||||
|
|
||||||
driver.find_element_by_id("submit-crt").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