Cannot run python/appium tests against react-native app


#1

Hello, I need some help figuring out what is going on. My developer upgrade the react-native app to to 0.58.6 and now my tests can no longer find any xpaths on the screen. They were working before this upgrade. When running the tests all find_elements_by xpaths/ids come back empty. I can however, see the xpaths and interact with the app just fine in Appium Desktop. Any help would be appreciated

Platform: macOs High Sierra, version 10.13.6
Appium: 1.11.1
Appium Desktop: 1.11.0
Emulator:
Android:
{
“newCommandTimeout”: 0,
“app”: myAppPath,
“platformName”: “Android”,
“deviceName”: “Nexus_5X_Nougat”,
“clearsystemfiles”: true,
“fullReset”: true,
“automationName”: “UiAutomator2”
}

iOS:
{
“newCommandTimeout”: 0,
“app”: myAppPath,
“platformName”: “iOS”,
“deviceName”: “iPhone X”,
“clearsystemfiles”: false,
“fullReset”: false,
“platformVersion”: “11.3”
}

Here is an example of output for iOS attempting to find the element

[HTTP] --> POST /wd/hub/session/f6a93934-d3c1-47cf-9417-3687f04abd82/elements
[HTTP] {“using”:“xpath”,“value”:"(//XCUIElementTypeOther[@name=“schedule_table_date_row”])",“sessionId”:“f6a93934-d3c1-47cf-9417-3687f04abd82”}
[debug] [MJSONWP (f6a93934)] Calling AppiumDriver.findElements() with args: [“xpath”,"(//XCUIElementTypeOther[@name=“schedule_table_date_row”])",“f6a93934-d3c1-47cf-9417-3687f04abd82”]
[debug] [XCUITest] Executing command ‘findElements’
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [WD Proxy] Matched ‘/elements’ to command name ‘findElements’
[debug] [WD Proxy] Proxying [POST /elements] to [POST http://localhost:8100/session/2B09C5B4-D740-45DB-BF69-4AC9568581C4/elements] with body: {“using”:“xpath”,“value”:"(//XCUIElementTypeOther[@name=“schedule_table_date_row”])"}
[debug] [WD Proxy] Got response with status 200: {“value”:[],“sessionId”:“2B09C5B4-D740-45DB-BF69-4AC9568581C4”,“status”:0}
[debug] [MJSONWP (f6a93934)] Responding to client with driver.findElements() result: []
[HTTP] <-- POST /wd/hub/session/f6a93934-d3c1-47cf-9417-3687f04abd82/elements 200 985 ms - 74