I was working on the UISearchBar in Xcode and while running the app, this button appeared in the search text field and it's still there since.
Did anybody face this problem before? How to delete this button.
Unselect the Shows Search Results Button attribute in Attributes Inspector.
Untick the box shows search results button. it will hide
Related
I have a toolbar item implemented in Xamarin Forms project in xaml like this.
<ContentPage.ToolbarItems>
<ToolbarItem Name="Create" Command="{Binding AddNewCabin}" Text="Add Cabin" ></ToolbarItem>
</ContentPage.ToolbarItems>
The command AddNewCabin is binded to a navigation method.
When I come back from the next page the text for the tool bar item is paled out like a visited link. I have no idea how to turn off that kind of behavoiur.
I thought that was an issue with a click event however I tried binding the click or the command to an empty method and the text is not paled out. It is only paled out if there is some Push navigation that occurs afterwards using this event.
I have also tried navigating using other events on the same page from listview for example and in that case the toolbar item is also NOT paled out.
So the only occasion when it is paled out (changes color) is when I navigate using the commnd or event binding of the toolbar item. In all other cases this doesn't occur and I have no idea why. Does anybody know? Thanks.
PS. I Aam testing in IOs.
Sadly, I cannot reproduce behavior of your toolbar item. On my machine navigating from toolbar item works perfectly. Check my gif. Colors of button "Add" are switching properly.
You should try removing and adding your button on the OnAppearing event.
But this is very strange behavior. Can you post more code of your implementation?
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.
I have an Edit Menu in my UITextView selection to play an audio as shown below (see the screen shot). After i tap on play the Edit menu is hidden (I know its Apple's default behavior). I need to to retain the Edit menu even after tapping the play item and also want to change the text from play to stop. I hope some one can help me. Thanks in advance!
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.
I need to display the context menu when clicked on a rich:dataTable column,and need to show a rich:popupPanel when clicked on a menu item. I could able to get the popup but it is disappearing instantly.Does anyone have an idea on this?
I am using rich:dropDownMenu (RichFaces 4.0.0.Final).
Thanks in Advance.
If you have a domElementAttachment="parent" in your popup, than change it to domElementAttachment="form". If you still have the problem I can insert the full code here.