Python click button

Hi!!!
I’m new with appium and I need help.
I need to write a script to click button (I’m working with ionic application).
Nothing works!

from appium import webdriver

caps = {}
caps[“platformName”] = “Android”
caps[“platformVersion”] = “8.0”
caps[“deviceName”] = “Android Emulator”
caps[“app”] = “C:/Users/Sara/Desktop/test_otto/platforms/android/app/build/outputs/apk/debug/app-debug.apk”
caps[“automationName”] = “UiAutomator2”

driver = webdriver.Remote(“http://localhost:4723/wd/hub”, caps)

el1 = driver.find_element_by_accessibility_id(“ALERT”)
el1.click()

driver.quit()

The code above does not work. Not even the one below:

class SimpleAndroidTests:
def setUp():
desired_caps = {}
desired_caps[‘platformName’] = ‘Android’
desired_caps[‘platformVersion’] = ‘8.0’
desired_caps[‘deviceName’] = ‘Android Emulator’
desired_caps[‘app’] = ‘C:/Users/Sara/Desktop/test_otto/platforms/android/app/build/outputs/apk/debug/app-debug.apk’
desired_caps[“automationName”] = “UiAutomator2”

    driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps)

def tearDown():
    # end the session
    driver.quit()

def test_find_elements():
    el = driver.find_element_by_accessibility_id('ALERT')
    el.click()        

test_one = SimpleAndroidTests
test_one.setUp()
test_one.test_find_elements()
test_one.tearDown()

PLEASE HELP