New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
findElementFromElement not returning child element #10101
Comments
Is this button found if you execute find in the global context (driver.findElement) ? |
Yes, it is found. |
The only diff I see there is the usage of |
I had to revert xcode, because I have urgent deliveries, so I may try that only in couple days. In the meantime @bhagarenikhi can you try and comment that condition and re-run your tests? |
Yes. I have tried by commenting the condition but no luck :-(.
|
I assume it's some internal XCTest magic. I'd try to use single class chain locator instead to workaround this problem. For example, the described case might use the following chain locator:
|
I have the same problem. First I thought it was Appium 1.8.0 but then I see the same issue with 1.7.2. Previously this was used: My very ugly workaround: Which tells me, that
and
work, but not:
|
You can roll back to appium 1.7.1 and it should work fine, if there isn't anything specific in 1.7.2 that you rely on. |
Works for me with:
|
I upgraded again to Xcode9.2. Tested again to see if it continued failing, and then with the code:
commented it works 🥇 You think a fix can be made? |
Thanks for checking @tfcardoso. I've created a PR to patch it, so firstMatch will only be executed in application context |
Confirm: no issues with Appium 1.8.0-beta3. |
It doesn't work for me on version 1.9.2 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
The problem
After I upgraded to Xcode9, iOS11 and Appium v1.7.2 several of the nested find elements that worked before stopped working.
Environment
Details
The project I test its quite complex, so I often use findElementByIosNsPredicate that gives me more freedom on my queries. After I updated to XCode9, iOS11 the queries that find element from a parent element started failing. Strangely enough if I query for elements instead of element, the first returns properly while the second doesn't find the element.
Link to Appium logs
https://gist.github.com/tfcardoso/f57cae4cf183c8eed120eafc326477f3
Code To Reproduce Issue [ Good To Have ]
I made an example based on the following view:
https://image.prntscr.com/image/nr0Bv3wDRRyh-p2vK2Jshg.png
Its a XCUIElementTypeCollectionView with several XCUIElementTypeCell and inside the penultimate one, there is an element that has a play button (with id/name chatView_fileTransfers_button_videoPlay).
The output from the above code is:
There is other person with apparently the same problem in http://discuss.appium.io/t/appium-ios-findelementfromelement-is-not-working/20727
The text was updated successfully, but these errors were encountered: