count the number of rows/columns using UI Automation - ui-automation

I am new to UI Automation. I am working on UIAutomation IPad for one of the clients. I need to perform the below activities
1. When we click on Products list page, I will see a tabular format with 2 rows and 3 columns where each product will be displayed (Product image, name, price, ratings, SKU). Here I need to check if the products are listed in 2X3 format.
The products list page should display the text as (Viewing 1-6 of 100) on the 1st page. I need to swipe to the left then it should display (Viewing 7-12 of 100) something like that.In this screen, the products could be of various categories (Plasma tv, Insignia tv etc) Here, I need to capture the 'Viewing' as regular expression and perform on any screen. How to do this?
For each of the 6 products displayed on the screen, there will be a button 'Add to compare'. I need to validate, 'Add to compare' is present for all the 6 images. How to do this one?
When I click on the category, screen loading will take few seconds. I have made use of target.delay(20), its working fine now, however, I want to validate if the next screen is loaded using the below method.
On the 2nd screen, I am capturing a staticText. I will ask the code to wait until this staticText is visible. Is that makes sense?
Apologies for posting all the queries at a time, please bear with me,I am n

Related

Flutter tagging and filtering the data based on tags selected(Multi selection of Tag is possible)

I'm trying to create a new page in which people can view all the people which are providing the services on my platform but can be filtered by using tagging
The filter should happen in such a a way that people who are providing most of the services which are tagged should be on top and based on the number of tags hit the order of people will be maintained most tag hit on top and least tag hit to be on the below side of the search result
For this purpose i'm trying to use "https://pub.dev/packages/flutter_tagging/example" which is a library which helps with flutter tagging
but now i want to add this tag filter to filter my grid based on the tags selected
so basically a search button on top using which the tags can be added
a button to switch the grid to list (i have the code for both grid and list but they ar enot related to my data at the moment)
and finally the tag to filter the data
Step 1:- Once the user clicks on View ALl the user is redirected to next screen
Step 2:- Currently the second screen is just a grid however i want it to have the flutter tagging to filter all people and also a button to change from grid to list
I'm new to flutter so any guide reference will be great
for any question please feel free to ask

Tableau - keeping a sheet static in dashboard

I have 4 sheets that are put up in the tableau dashboard.
Sheet 1: Total no. Of user IDs (population). Text
Sheet 2: total user ids based on selection in sheet 3 and sheet 4.
Sheet 3 & 4: Bar graph of user ids based on company and vendor. Both the sheets are "use as filter"
Sheet 1 has to be static in the dashboard whether we select any filter or when we select any bar on sheet 3 and 4.
Now the issue is when I select any bar on the sheet 3 and 4 both sheet 1 and 2 shows same count.
I have removed all filters from population sheet.
I tried to even ignore action in sheet1, it's still not working
What I want now is what ever the selection is , sheet 1 in the dashboard should be static. Please help.
Regards, Sajan
Try this;
Check the filters on all the sheets to see if they are set to filter the Data Source, set them, to your preferences.
If you can (watch out for sensitive data) upload your sheet to Tableau public, it'll be easier to find your bottleneck.
What's happening is called an automatically generated action. When you click "use as filter" on a sheet on your dashboard, you're creating an action that affects all other items on that dashboard. Go to the Dashboard, then click on the dashboard menu at the top of the screen, then click "Actions..."
You should see the filter that you created there. Select the action, then click "edit".
You should now see something similar to the below picture. What you need to do for each action (you should have two, one from each sheet that is being used as a filter) is uncheck the static sheet on the list of Target Sheets on the bottom half of the Edit Filter Action dialogue box.
This will prevent anything happening to the static sheet (in this case, "Count of Employee Transactions") when you click on the sheets being used as filters.

Linking Page data to Filter in Tableau

I have a set of geographic data tied to date. I want to show change in this geographic data over time. In my tableau sheet, I added the Date field as a "Page" so that I have a play button, but the measures don't change over time. When I press the play button on the Page window, it looks like it's cycling through dates, but it just shows the same values on screen the whole time.
Drag date in pages(that will be change frequently)
Now select toggle for animation speed
Now select loop playback from option
Finally click on revers or forward play to visualize your flow

In a windows 8 app, when clicking on a group, how to show a page that has clickable tiles

I have a windows 8 grid app, however, when I click on a group, I don't want the GroupDetailPage. Instead, I need a page that has multiple tiles which are clickable links.
Something similar to the app store, when you click a particular group, say Games, you get all the games, arranged in a grid and it is a clickable link.
Any help is very much appreciated.
thanks in advance
You could modify the existing GroupDetailPage removing the content about the group, and leaving just the list of items. Or you could modify the destination of the group heading click to a completely new page that you generate.
Are you using C#/XAML, HTML5/JS?
If you are looking to mimic tile animations and display the MetroJS library is pretty cool:
http://www.drewgreenwell.com/projects/metrojs

How to design the UI for two data point inputs for routing

I have a large list of items (about 500) on my iphone app.. I am creating a custom map which uses the user's input of a "to" and "from" locations (places).. I am brainstorming the best way to collect the input from the user. Ideally, a search bar with a table view that has the matching items (instant search).. I could ask the user to enter the "To" location and "From" destination and then present the custom map with the route.. I am trying to figure out the ideal way to do this such that it remains simple and user friendly.. I could have;
1) A search bar/table view that asks for the From location which, once entered, goes to a similar second view that takes the To location (could be too annoying for the user)
2) Each input area takes half a view (From is top, to is bottom).. however too cluttered
3) One view with the items, the user selects two locations from the list (in this case, it is not very intuitive.. how would I let the user know that he is supposed to select two items.. what if he messes up the order or forgets he clicked on an item as he searches?)
Note that I am not asking for the code, just an idea on how to design this UI to be simplistic and easy to use
Thanks!
You could have two search bars with a drop down list that provides the instant search (kinda like google's instant search) once the user enters the first selection it freezes and goes to the "TO" bar...