Skip to content
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

Elements inside iCarousel are not anabled for accessibility #827

Open
jcmorfin opened this issue Sep 1, 2017 · 7 comments
Open

Elements inside iCarousel are not anabled for accessibility #827

jcmorfin opened this issue Sep 1, 2017 · 7 comments

Comments

@jcmorfin
Copy link

jcmorfin commented Sep 1, 2017

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
Copy link

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

@jcmorfin
Copy link
Author

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

@dogtim
Copy link

dogtim commented Jan 10, 2018

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
Copy link

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
Copy link

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
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants