def METHOD_NAME(page: Page):
	# Open the admin page 
	page.goto('http://localhost:4848')
	page.wait_for_selector('div[id="treeForm:tree_children"]')
	# Click on the option Instances in the menu
	instance_button = page.get_by_role("link",name="Instances", exact=True)
	instance_button.click()
	page.wait_for_selector('input[value=" Save "]')
	# Confirm the dialog window
	page.on("dialog", lambda dialog: dialog.accept())
	# Select all instances and Stop
	select_all_button = page.get_by_role("link",name="Select All", exact=True)
	select_all_button.click()
	stop_button = page.get_by_role("button",name=" Stop ")
	stop_button.click()
	# wait for modal to appear and disappear
	page.wait_for_selector('input[value="Processing..."]')
	page.wait_for_selector('div#ajaxPanelBody')
	page.wait_for_selector('input[value="Processing..."]', timeout=1200000,state="hidden")
	page.wait_for_selector('div#ajaxPanelBody', timeout=600000,state="hidden")