Xamarin.TestUI Navigating repeating objects Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30 pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Using an array to navigate to ViewControllersAccessing XAML from code properlyMvvmCross Dynamic ListView with GroupsXamarin Expandable RecyclerView, How to create ChildClickListenerXamarin: Back button in Detail of MasterDetailPageUsing AutomationID with ListViewUICollectionView not updating properly in XamarinHow to control child view model from parent view model in xamarin mvvmCross?Changing labels text when button is clickedHow to set AutomationId on TabbedPage bar items in Xamarin Forms app for UI test

How was Lagrange appointed professor of mathematics so early?

France's Public Holidays' Puzzle

What is a 'Key' in computer science?

Variable does not exist: sObjectType (Task.sObjectType)

What is the ongoing value of the Kanban board to the developers as opposed to management

SQL Server placement of master database files vs resource database files

Does a Draconic Bloodline sorcerer's doubled proficiency bonus for Charisma checks against dragons apply to all dragon types or only the chosen one?

What is the evidence that custom checks in Northern Ireland are going to result in violence?

Philosophers who were composers?

Does Prince Arnaud cause someone holding the Princess to lose?

How long can a nation maintain a technological edge over the rest of the world?

/bin/ls sorts differently than just ls

Co-worker works way more than he should

How to keep bees out of canned beverages?

How do I deal with an erroneously large refund?

All ASCII characters with a given bit count

Coin Game with infinite paradox

My admission is revoked after accepting the admission offer

What was Apollo 13's "Little Jolt" after MECO?

Will I lose my paid in full property

In search of the origins of term censor, I hit a dead end stuck with the greek term, to censor, λογοκρίνω

Is it accepted to use working hours to read general interest books?

How would it unbalance gameplay to rule that Weapon Master allows for picking a fighting style?

Can gravitational waves pass through a black hole?



Xamarin.TestUI Navigating repeating objects



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30 pm US/Eastern)
Data science time! April 2019 and salary with experience
The Ask Question Wizard is Live!Using an array to navigate to ViewControllersAccessing XAML from code properlyMvvmCross Dynamic ListView with GroupsXamarin Expandable RecyclerView, How to create ChildClickListenerXamarin: Back button in Detail of MasterDetailPageUsing AutomationID with ListViewUICollectionView not updating properly in XamarinHow to control child view model from parent view model in xamarin mvvmCross?Changing labels text when button is clickedHow to set AutomationId on TabbedPage bar items in Xamarin Forms app for UI test



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















Lets say I have a listview in a native app (not webapp). Each listview item has child labels with AutomationID 'name', 'date', and 'time' and a button with AutomationID 'info'.



In my test, I want to click on the info button for an item that has a specific date.



Coming from selenium, one way i'd find my button is to first find the listview item that has child 'date' with value "specificDate", then I'd find that listview items child 'info' button and click.



This is the ugly solution I'm using now:



x => x.Marked("VisitStartDate").All().Text(date)
.Parent().Marked("VisitEntry").Descendant()
.Marked("PatientName").Text(name)
.Parent().Marked("VisitEntry").Descendant()
.Marked("VisitInfo");


Id like to avoid all these repeating Parent() Descendant() calls.



In short I'm having trouble navigating repeatable elements without the structure selenium provides.










share|improve this question
























  • Repl is the way to go my friend. Could you provide some output from it, so we clearly see the structure you now describe. A image says more than 1000 words! (if you have the right image)

    – PixelPlex
    Apr 3 at 8:23











  • @PixelPlex any complex structure can navigated the same way in selenium with its provided tools. I'm asking if xamarin provides similar tools im missing.

    – Doug Clark
    Apr 3 at 15:04

















0















Lets say I have a listview in a native app (not webapp). Each listview item has child labels with AutomationID 'name', 'date', and 'time' and a button with AutomationID 'info'.



In my test, I want to click on the info button for an item that has a specific date.



Coming from selenium, one way i'd find my button is to first find the listview item that has child 'date' with value "specificDate", then I'd find that listview items child 'info' button and click.



This is the ugly solution I'm using now:



x => x.Marked("VisitStartDate").All().Text(date)
.Parent().Marked("VisitEntry").Descendant()
.Marked("PatientName").Text(name)
.Parent().Marked("VisitEntry").Descendant()
.Marked("VisitInfo");


Id like to avoid all these repeating Parent() Descendant() calls.



In short I'm having trouble navigating repeatable elements without the structure selenium provides.










share|improve this question
























  • Repl is the way to go my friend. Could you provide some output from it, so we clearly see the structure you now describe. A image says more than 1000 words! (if you have the right image)

    – PixelPlex
    Apr 3 at 8:23











  • @PixelPlex any complex structure can navigated the same way in selenium with its provided tools. I'm asking if xamarin provides similar tools im missing.

    – Doug Clark
    Apr 3 at 15:04













0












0








0








Lets say I have a listview in a native app (not webapp). Each listview item has child labels with AutomationID 'name', 'date', and 'time' and a button with AutomationID 'info'.



In my test, I want to click on the info button for an item that has a specific date.



Coming from selenium, one way i'd find my button is to first find the listview item that has child 'date' with value "specificDate", then I'd find that listview items child 'info' button and click.



This is the ugly solution I'm using now:



x => x.Marked("VisitStartDate").All().Text(date)
.Parent().Marked("VisitEntry").Descendant()
.Marked("PatientName").Text(name)
.Parent().Marked("VisitEntry").Descendant()
.Marked("VisitInfo");


Id like to avoid all these repeating Parent() Descendant() calls.



In short I'm having trouble navigating repeatable elements without the structure selenium provides.










share|improve this question
















Lets say I have a listview in a native app (not webapp). Each listview item has child labels with AutomationID 'name', 'date', and 'time' and a button with AutomationID 'info'.



In my test, I want to click on the info button for an item that has a specific date.



Coming from selenium, one way i'd find my button is to first find the listview item that has child 'date' with value "specificDate", then I'd find that listview items child 'info' button and click.



This is the ugly solution I'm using now:



x => x.Marked("VisitStartDate").All().Text(date)
.Parent().Marked("VisitEntry").Descendant()
.Marked("PatientName").Text(name)
.Parent().Marked("VisitEntry").Descendant()
.Marked("VisitInfo");


Id like to avoid all these repeating Parent() Descendant() calls.



In short I'm having trouble navigating repeatable elements without the structure selenium provides.







xamarin xamarin.uitest






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 3 at 15:02







Doug Clark

















asked Mar 22 at 14:55









Doug ClarkDoug Clark

295318




295318












  • Repl is the way to go my friend. Could you provide some output from it, so we clearly see the structure you now describe. A image says more than 1000 words! (if you have the right image)

    – PixelPlex
    Apr 3 at 8:23











  • @PixelPlex any complex structure can navigated the same way in selenium with its provided tools. I'm asking if xamarin provides similar tools im missing.

    – Doug Clark
    Apr 3 at 15:04

















  • Repl is the way to go my friend. Could you provide some output from it, so we clearly see the structure you now describe. A image says more than 1000 words! (if you have the right image)

    – PixelPlex
    Apr 3 at 8:23











  • @PixelPlex any complex structure can navigated the same way in selenium with its provided tools. I'm asking if xamarin provides similar tools im missing.

    – Doug Clark
    Apr 3 at 15:04
















Repl is the way to go my friend. Could you provide some output from it, so we clearly see the structure you now describe. A image says more than 1000 words! (if you have the right image)

– PixelPlex
Apr 3 at 8:23





Repl is the way to go my friend. Could you provide some output from it, so we clearly see the structure you now describe. A image says more than 1000 words! (if you have the right image)

– PixelPlex
Apr 3 at 8:23













@PixelPlex any complex structure can navigated the same way in selenium with its provided tools. I'm asking if xamarin provides similar tools im missing.

– Doug Clark
Apr 3 at 15:04





@PixelPlex any complex structure can navigated the same way in selenium with its provided tools. I'm asking if xamarin provides similar tools im missing.

– Doug Clark
Apr 3 at 15:04












0






active

oldest

votes












Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55302351%2fxamarin-testui-navigating-repeating-objects%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55302351%2fxamarin-testui-navigating-repeating-objects%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript