nicklockwood / iCarousel

A simple, highly customisable, data-driven 3D carousel for iOS and Mac OS
http://www.charcoaldesign.co.uk/source/cocoa#icarousel
Other
12k stars 2.58k forks source link

Elements inside iCarousel are not anabled for accessibility #827

Open jcmorfin opened 6 years ago

jcmorfin commented 6 years ago

I am doing automation testing for one iOS application which uses iCarousel and I am facing the issue that I cannot locate the elements inside the iCarousel so I cannot use them for test automation.

I have tried with Appium inspector and XCode accessibility inspector with same result.

Is there any way to set the elements inside the iCarousel as enabled for Accessibility?

Thank you

jeffrwon commented 6 years ago

Check out #653. You might have to point your Podfile to that person's repo and that commit.

jcmorfin commented 6 years ago

I think that solution will not help me with as I would need to see every component inside the carousel: images, labels, etc.

dogtim commented 6 years ago

Hi there, we have the same problem. Tried to set accessibility enable element to subviews in Carousel, still can not use Accessibility Inspector to find them

barankaansert commented 6 years ago

Hi, we also had same problem. Can not inspect any item on icarousel with appium. If someone find a way please share with me.

Sent with GitHawk

junioreder commented 6 years ago

You can set isAccessibilityElement of the iCarousel object to false because it is just a container in this case. It will allow you to access its children elements.

kaannesinn commented 5 years ago

If you comment the lines below on iCarousel.m file, iCarousel view and its custom subviews will be accessible.

//set up accessibility // self.accessibilityTraits = UIAccessibilityTraitAllowsDirectInteraction; // self.isAccessibilityElement = YES;

ArchanaKelkar commented 3 years ago

I am facing the similar issue and tried the solutions provided above. Commenting this //set up accessibility // self.accessibilityTraits = UIAccessibilityTraitAllowsDirectInteraction; // self.isAccessibilityElement = YES;

and also setting isAccessibilityElement of the iCarousel object to false. Let me know if there is any solution