I am unable to make the xpath of the SOS button, I want to grab the text “SOS” for the assertion.
I am using appium python
Tried the following xpaths:
self.driver.find_element_by_xpath("//android.widget.TextView[@text= ‘SOS’]").click()
self.driver.find_element_by_id(‘com.dp.himmat:id/btn_sos_home’).text
self.driver.find_element_by_android_uiautomator(‘new UiSelector().text(“SOS”)’).text()
Please help me out.