iOS UITest: How to test custom accessibility actions?
up vote
0
down vote
favorite
I want to support VoiceOver. I have an UIButton
inside of an UITableViewCell
. According to a best practice I have disabled the button for accessibility (.isAccessibilityElement = false
) and implemented a custom accessibility action for the cell (accessibilityCustomActions, NSAccessibilityCustomAction
).
This way VoiceOver would not find and read the button as an own element. To make the feature behind the button accessible, I have added a custom accessibility action to the cell. With the custom action the user can select the action with swipe up and down. And then perform it with double-tap.
Now I want to test this action with an UITest. It's not possible to access the button inside of an UITest, because its disabled for accessibility.
How can I perform a custom accessibility action inside of an UITest?
ios accessibility xcode-ui-testing voiceover xcuitest
add a comment |
up vote
0
down vote
favorite
I want to support VoiceOver. I have an UIButton
inside of an UITableViewCell
. According to a best practice I have disabled the button for accessibility (.isAccessibilityElement = false
) and implemented a custom accessibility action for the cell (accessibilityCustomActions, NSAccessibilityCustomAction
).
This way VoiceOver would not find and read the button as an own element. To make the feature behind the button accessible, I have added a custom accessibility action to the cell. With the custom action the user can select the action with swipe up and down. And then perform it with double-tap.
Now I want to test this action with an UITest. It's not possible to access the button inside of an UITest, because its disabled for accessibility.
How can I perform a custom accessibility action inside of an UITest?
ios accessibility xcode-ui-testing voiceover xcuitest
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I want to support VoiceOver. I have an UIButton
inside of an UITableViewCell
. According to a best practice I have disabled the button for accessibility (.isAccessibilityElement = false
) and implemented a custom accessibility action for the cell (accessibilityCustomActions, NSAccessibilityCustomAction
).
This way VoiceOver would not find and read the button as an own element. To make the feature behind the button accessible, I have added a custom accessibility action to the cell. With the custom action the user can select the action with swipe up and down. And then perform it with double-tap.
Now I want to test this action with an UITest. It's not possible to access the button inside of an UITest, because its disabled for accessibility.
How can I perform a custom accessibility action inside of an UITest?
ios accessibility xcode-ui-testing voiceover xcuitest
I want to support VoiceOver. I have an UIButton
inside of an UITableViewCell
. According to a best practice I have disabled the button for accessibility (.isAccessibilityElement = false
) and implemented a custom accessibility action for the cell (accessibilityCustomActions, NSAccessibilityCustomAction
).
This way VoiceOver would not find and read the button as an own element. To make the feature behind the button accessible, I have added a custom accessibility action to the cell. With the custom action the user can select the action with swipe up and down. And then perform it with double-tap.
Now I want to test this action with an UITest. It's not possible to access the button inside of an UITest, because its disabled for accessibility.
How can I perform a custom accessibility action inside of an UITest?
ios accessibility xcode-ui-testing voiceover xcuitest
ios accessibility xcode-ui-testing voiceover xcuitest
edited yesterday


Nikhil Manapure
1,80211142
1,80211142
asked Nov 19 at 11:36
Artur Friesen
97117
97117
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53373806%2fios-uitest-how-to-test-custom-accessibility-actions%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown