Skip to content

Unable to find "FlipViewItem" by ClassName or AutomationId #1060

Open
@HenryColes

Description

@HenryColes

In our uwp app, we have five panels in our carousel section. So I am using the below xpath query to locate them,
session.FindElementsByXPath("//*[@classname = 'FlipViewItem']");
the interesting thing is, every time only the first three panels are fetched by the driver session.
Here is my code:
var waitForCarouselPanelContents = new DefaultWait<WindowsDriver<WindowsElement>>(session) { Timeout = TimeSpan.FromSeconds(20), PollingInterval = TimeSpan.FromSeconds(0.5) }; waitForCarouselPanelContents.IgnoreExceptionTypes(typeof(InvalidOperationException)); waitForCarouselPanelContents.Until(session => { var carousels = session.FindElementsByXPath("//*[@ClassName = 'FlipViewItem']"); return carousels.Count() == 5; });
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions