-
Notifications
You must be signed in to change notification settings - Fork 141
-
Notifications
You must be signed in to change notification settings - Fork 141
Missing UI components in the screenshot #249
Comments
Hi @antoniocasero, can you provide some screenshots? This happens for all devices or just a specific subset? |
Yep, it happens in all devices, but each device has different problems (like @niveuseverto screenshots or #250) |
For me is the same, every device is broken in a different way but just for the screenshots Btw this was happening with snapshot 0.10.x then i update to 1.x.x hoping this issue was fixed but is still present. |
Earlier that was not an issue. Main problem in this approach: I have display mounted to mac with resolution 1920x1080. |
Using @pabloromeu fix (by changing the simulator scale to 100%) solves the problem. |
@pabloromeu Is that something I should add to the documentation? Or even print it in the |
@KrauseFx I am not really sure which is the process of taking the snapshot. I cannot assess you with that. But as far as I have seen at the swift helper code, you do something like moving a "press" along the screen. Maybe when the simulator is not at full screen this "movement" does not "grab" the full screen. And maybe it has something to do with #215 Maybe we could get the screenshots on main thread using test expectations, then you could get rid of these "touch" tricks. |
@KrauseFx I have just tried to get manual snapshots from the simulator (not using Fastlane's snapshot). If scale is different from 100% the snapshot has incorrect size (e.g.: If zoom is 50% the snapshot has half the actual device size). So this is a simulator bug. |
Doubtly, screenshots made from simulator itself are normal |
@niveuseverto check the size of the snapshot. They are smaller than the actual device size. |
I meant, do snapshot uses internal simulator's screenshot function or something other? |
you can dupe this radar https://openradar.appspot.com/radar?id=6127019184095232 Is there maybe a way to force the iOS simulator to start in 100% scaling from command line? |
@hannesoid It would probably be possible using Apple Script, but we don't want to go down this road. |
I can confirm that @pabloromeu solution works. And I can also confirm that the bug is on simulator. I'm using snapshot old version (0.10.2) and the bug exists here too. |
I'm using snapshot 0.10.2 version (yes, I need to migrate my old JS code). I confirm the bug, and the solution. |
It seems I have the same issue: |
@KrauseFx out of interest - why are you so against Apple Script? |
@KrauseFx how about just writing directly to the preferences? If you set every preference starting with SimulatorWindowLastScale to 1, then that should do the job.
converted to XML looks like:
|
@ConfusedVorlon That's a great find, I can implement this into snapshot 🚀 |
Looks good to me. I’d iterate over the == Device Types == section of |
@0xced doing that right now 🚀 |
I just pushed a new release https://github.com/fastlane/snapshot/releases/tag/1.2.0 |
This issue was migrated to fastlane/fastlane#2578. Please post all further comments there.
|
Hi,
First of all, thanks for sharing this amazing project.
I'm trying to use Snapshot in my project, but the images taken from the UITest are incomplete. Some tableviews are missing, or sometimes only one of the cells appear in the screenshot.
Has anyone experience the same?
I'm using snapshot 1.0.3
The text was updated successfully, but these errors were encountered: