I am running into an issue running appium python on the AWS device farm and I am really looking for assistance.
What happens is on some devices (mostly samsung phones running 5.1.1) system messages pop up like the device is running for the first time. I need to write code to click them away but everything I’ve tried so far does not work.
Here is what I have tried:
a few variations of self.driver.find_element_by_id. None of which have worked so far. I assume I just dont have the right name but I have no way to load the AWS Device Farm instances locally to check
I have tried to find by the following ids:
self.driver.switch_to_alert().accept() gets a not implemented message using appium python
find_element_by_android_uiautomator(‘new UiSelector.textContains(“OK”)’).click() gets me the following message
"Message: The requested resource could not be found, or a request was received using an HTTP method that is not supported by the mapped resource."
find_element_by_name (I hear this is deprecated and probably removed) gets me “Message: Locator Strategy ‘name’ is not supported for this session”
autoAcceptAlerts and autoDismissAlerts in desired capabilities do not dismiss the messages
HELP!!! I’ve tried just about everything I can think of.
Here are some screenshots of the messages: