question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can not found a photo using simulator iOS

See original GitHub issue

The 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 image with the following inspector image

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:closed
  • Created 3 years ago
  • Comments:18

github_iconTop GitHub Comments

1reaction
mykola-mokhnachcommented, Jun 4, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found