Hey there!
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:
āandroid:id/ok_buttonā
"android:id/button0"
āandroid:id/button1ā
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:
created
Oct '18
last reply
Oct '18
- 8
replies
- 271
views
- 3
users