Can not found a photo using simulator iOS
See original GitHub issueThe problem
I am trying to choose a photo form photo gallery. After clicking on the app, that i am testing, choose photo pop up the following screen with the following inspector
By running the server i have got the following: An element could not be located on the page using the given search parameters.
Environment
- Appium version (or git revision) that exhibits the issue: 1.17.0
- Mobile platform/version under test: Mac
- Real device or emulator/simulator: simulator
- Appium CLI or Appium.app|exe:
Code To Reproduce Issue [ Good To Have ]
getIOSDriver().findElementByXPath("//XCUIElementTypeCell[@name=\"Alle Fotos\"]").click();
Issue Analytics
- State:
- Created 3 years ago
- Comments:18
Top Results From Across the Web
Photos App in Simulator Not Working - Stack Overflow
If all else fails, delete Xcode including Simulator, Instruments, etc.. Then go to Apples Developer Downloads ...
Read more >Simulator fails to import data - X… | Apple Developer Forums
So if I drag and drop a simple jpg photo which normally would appear in the Photos App I get the following error:...
Read more >VS 2019 16.9.4 cannot connect to iOS Simulator Xcode 12.5
IOS Simulator on Windows does not work after upgrading to 12.5. Environment: VS 2019 16.9.4 and XCODE 12.5. Error: “The device {guid} was...
Read more >Cannot run iOS 14.5 simulator from Windows - Microsoft Q&A
My Mac is fully updated with Big Sur 11.3, Xcode 12.5, and the fully updated Visual Studio of its own. 92150-image.png. And then...
Read more >How to access iOS simulator camera - SyntaxFix
Any help for my problem. If not possible in simulator means i need to access my system camera. Whether it is possible?I tried...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
No, the locator must be a valid ios predicate. Read https://github.com/appium/appium/blob/fe293dcaf4621ae68f4d61f891b872442f7627bc/docs/en/writing-running-appium/ios/ios-predicate.md
https://kapeli.com/cheat_sheets/NSPredicate.docset/Contents/Resources/Documents/index for more details
This depends on how the app under test is built. I cannot reproduce the issue locally with my app under test - all elements on the Photos overlay are found properly.
Try to retrieve the page source right before the lookup is executed and check what’s there.