How to find multiple element in appium having same id in Python?
You can do link this, It will give you proper Output:
Input is:

d1 = driver.find_elements_by_id("com.application.zomato:id/price")
itemtotalprice = d1[0].get_attribute("text")

Here, is my output:

Mandarin Oak
₹200
₹166.75
I am writing test code in Appium of an Andriod Project in python . The problem is that I am not able to access two button in two different Activity having same Id . I have tried to access the second button in this way.But none of them works. How to resolve the issue?
driver.find_element_by_id("com.myapp.testApp:id/login[1]").click(), driver.find_element_by_class_name("android.widget.Button").click()
driver.find_element_by_xpath("(//button[@id='login'])[1]").click()
driver.find_element_by_xpath("//android.widget.Button[@text='Change Password']").click()