Skip to content

Commit

Permalink
Merge pull request #189 from bartoszj/force_start_accessibility
Browse files Browse the repository at this point in the history
Force start accessibility for `pa11yi` command
  • Loading branch information
kastiglione authored Apr 16, 2017
2 parents d5f1e3b + 776d357 commit d11d78a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion commands/FBAccessibilityCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def args(self):
return [ fb.FBCommandArgument(arg='aView', type='UIView*', help='The view to print the hierarchy of.', default='(id)[[UIApplication sharedApplication] keyWindow]') ]

def run(self, arguments, options):
forceStartAccessibilityServer();
forceStartAccessibilityServer()
printAccessibilityHierarchy(arguments[0])

class FBPrintAccessibilityIdentifiers(fb.FBCommand):
Expand All @@ -49,6 +49,7 @@ def args(self):
return [ fb.FBCommandArgument(arg='aView', type='UIView*', help='The view to print the hierarchy of.', default='(id)[[UIApplication sharedApplication] keyWindow]') ]

def run(self, arguments, option):
forceStartAccessibilityServer()
printAccessibilityIdentifiersHierarchy(arguments[0])

class FBFindViewByAccessibilityLabelCommand(fb.FBCommand):
Expand Down

0 comments on commit d11d78a

Please sign in to comment.