I'm integrating Highchart in iOS for displaying Bar chart. voiceover reads as "View as data table button", though I set options.exporting as false.
How to override/remove "View as data table button" from accessibility voiceover.
Related
Slack on the Mac at least removed the title bar but still has the control buttons. How do I duplicate this effect? Is there an electron option I missing or did slack rollout there own control buttons?
You can do this with Electron by setting the titleBarStyle option.
To use it:
var winObj = new BrowserWindow({
titleBarStyle: 'hidden',
});
This will hide the title bar but still keep the traffic lights in the corner.
Here are different values for the titleBarStyle option:
default
Results in the standard gray opaque Mac title bar.
hidden (Used in the example).
Results in a hidden title bar and a full size content window, yet the title bar still has the standard window controls ("traffic lights") in the top left.
hiddenInset
Results in a hidden title bar with an alternative look where the traffic light buttons are slightly more inset from the window edge.
See the docs for the BrowserWindow options (search for titleBarStyle).
Hi we change the title of the nav bar to a button so we can show the user a new set of information when tapped. This however makes life difficult for UI testing with XCUITest. We change the title to a button programmatically and I have set the accessbilitylabel and still can't access the button.
I have changed the accessibility label.
Search by text (even though it is dynamic pending user selection)
Used the UI Accessibility inspector- the one with the iOS 9 < sims and the new one with Xcode 8.
Search by otherElements
I did the record and tapped the button but it gave me nonsense and when i used nonsense it hits another spot of the view
Any help would be appreciated.
How do you manually trigger the "Done" (submit) button from the form accessory bar in iOS Safari?
You can call the blur() method on the active input/select HTML element, but that does not result in the same behavior.
Problem: The HTML select element shows a UIPickerView in iOS Safari. I'm running a hybrid app where there is no form accessory bar (it's been set to hidden in the WKWebView config). If i call blur(), the select element will discard my selection. I simply want it to remember whatever was chosen in the UIPickerView and trigger an change event like it normally would if I tapped on "Done" in the form accessory bar.
Anyone?
I have a navigation controller stack where one of the views has a dynamic title.
The view controllers and their titles go like this:
Main --> ItemsTableView --> ItemDetails
Title:Main Title: NN Items Title: Details
Because the iOS UINavigationController sets the text of the "Back" button to be the title of the previous screen, the "Back" button on the details screen says "< NN Items" where NN is a dynamically changing number.
I'm trying to do some iOS UI automation, but the accessibility Label / ID of the back button is set by the system to it's button text. This means that the accessibility label of the back button on the details screen will change dynamically, and I can't find it from my scripts!
If I could get a reference to the UIBarButtonItem then I could easily set it's accessibilityLabel or accessibilityIdentifier from code to be a fixed string, however I can't figure out how to do this?
All of the stuff I've been able to find references setting the back button to a custom button via self.navigationItem.backBarButtonItem or similar, but when I read this property it's nil. I haven't been able to find out how to get access to the standard item without replacing it. I'd prefer not to replace the button if possible
This was bugging me as well. I've been writing Xcode 7 UI Tests and was trying to come up with a generic way of tapping on the back button without having to replace it with a custom button.
The following is how I solved this for Xcode 7 UI Tests - but you may also be able to apply this to UI Automation as well.
I discovered that (in terms of Xcode 7 UI Tests at least) the back bar button item that is created by the system consists of two buttons the entire thing is a button with an accessibility label of whatever the title of the button is, and then the arrow is also a button with an accessibility label of "Back".
Thus, as long as there aren't any other buttons on the screen that are identified as "Back", the back button can be accessed via the accessibility label of "Back". Like so in the case of UI Tests:
[[app.buttons matchingIdentifier:#"Back"] elementBoundByIndex:0]
Here I'm getting the first button that can be identified by "Back". I my case there could only ever be two such buttons - the arrow, or the whole back button itself (in the case where the back button's title is also "Back"). Since both of these buttons are essentially the same, just getting the first one it finds is sufficient.
How to implement a different gesture to select text in a UITextView or web view in iOS? For instance, after tapping in a button to "enable" text selection, the user would just drag over the text to select it, instead of using the default text selection of iOS. How can that be accomplished?