How can I wait for refresh element by locator? - element

I have element on the page and further actions I can do only when it was refreshed.
How can I track it? Or refresh it forcibly?

Related

Flutter : Cloud Firestore upload progress indicator

I have a list of items in a catalog page with an add button. When I click the add button, it takes me to a form where I can upload an image and description. When I hit save, the data gets saved asynchronously to firebase. While the data is being saved, a progress bar is displayed on the screen and page is popped when done and takes me back to the catalog page.
What I would like to do is pop the form page right away on save and show save progress as in the catalog page. How do I go about doing that?
You'll have to create bloc or a cubit of some kind that will carry out the upload mechanism. Once you hit save, you'll have a bloc event that will start the upload and emit state according to the upload progress.
Since the upload is taken care of by the bloc you can pop the form page right after clicking save and have a bloc builder of some kind that will show the progress on the catalog page.
This bloc will be shared by both the pages, so you'll have to use dependency injection in my opinion.

State of ColumList in SAPUI5

I have a SAPUI5 m.columnlist contained inside m.table. I am supposed to click on any one of the item of columnlist which takes you to new page. From new page when you navigate back to the old page, the list scrolls to the top. I wished to maintain its state from where it is clicked and that item to be selected which was selected previously.
Getting no idea ho to go ahead with this.

losing data stored in list when next page selected in pageablelistview with checkbox

How do I not lose stored data of selected items in a pageable list view with checkbox when I change the page. please view my earlier post for code.
Visit page:
checkbox in pageablelistview in wicket
You can either:
store the data using Ajax the moment the checkboxes are set/unset.
try to prevent the user from leaving the page by javascript. See here

Key Listener called again and again if I click on Browser's back Button with Activity and Places in GWT

I am creating search page and I have use activity and places in GWT. I have used Key Listener so when user press Enter it redirect user on result page.
Problem is that when user use browser back button and again press enter Key Listener call twice same if user again click back button next time it will call trice and so on. Is there any solution for this?
You're probably adding your listener when activity starts but never remove it (e.g. when activity stops).
The full solution depends how you code your activity (do you reuse activity instances? do you have a separate view with activity acting as a presenter/controller? if so, is the view a singleton, or at list lives longer than the activity and can be reused by another activity instance? etc.)

Wicket - need FilterForm ajax events for GoAndClear button events

I've added a FilterForm with GoAndClear buttons to an AjaxFallbackDefaultDataTable. The filtering is working fine except for refreshing my table. I have a dropdown that changes the number of rows to show which does a target.addComponent(my AjaxFallbackDefaultDataTable) which doesn't reload the data but refreshes the. If I use this after I click a Go or Clear button then the table shows the proper rows, item count, and page links.
How can I handle Go and Clear clicks on my FilterForm to update my AjaxFallbackDefaultDataTable?
In the onsubmit method for the filter form just call .renderComponent() for the table.