locked
Getting value as 'Null' and count as 0 while finding/locating sub element/children within app window of windows 8.1 metro style app.

    Question

  • Getting value as 'Null' and count as 0 while finding/locating sub element/children within app window of windows 8.1 metro style app.

    We have followed below links:

    http://guriyakalyani.blogspot.in/

    http://blog.frogslayer.com/windows-store-applications-and-automated-testing-part-two/

    We got App User Model ID of app from registry and we are able to launch windows 8.1 metro style app using code mentioned above links.

     

    We are able to get root element 'desktop' using following code:

    AutomationElement aeDesktop = AutomationElement.RootElement;

    Also we are able to locate app window using following code:

     Condition appCondition =

                new PropertyCondition(AutomationElement.NameProperty,

                                    "IT Tech Books", PropertyConditionFlags.IgnoreCase);

                AutomationElement aeAppWindow =

                                          aeDesktop.FindFirst(TreeScope.Descendants,

                                          appCondition);

                Thread.Sleep(1000);

    But we are getting value of aePane as 'Null' and count as 0 while finding/locating sub element/children within above app window. We used following code for the same:

                AutomationElementCollection aePane =

                     aeAppWindow.FindAll(TreeScope.Children, new PropertyCondition(AutomationElement.AutomationIdProperty, "btnGoToLibrary", PropertyConditionFlags.IgnoreCase));

    Friday, November 21, 2014 9:54 AM

Answers

  • Hi MrudulaC,

    I success in downloading your project, but I find it’s a WinForm working with UI automation API. This is out of our support range. This forum is to discuss Metro app development using C# or VB.NET. I would recommend you post new thread on the following forum for effective response. https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/home?forum=windowsaccessibilityandautomation.

    Thank you for understanding. If you have any concerns, please feel free to let me know.

    Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate the survey.

    Wednesday, November 26, 2014 8:16 AM
    Moderator

All replies

  • Hi MrudulaC,

    I cannot open the page you have posted. It shows the blog does not exist. I don’t know what you are doing. Can you post a reproduce project? Use your OneDrive and share a link here.

    Thank you for understanding.

    Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate the survey.

    Monday, November 24, 2014 3:25 AM
    Moderator
  • We tried to share uploaded file publicly but it asked for specific email ID to which you want to share uploaded file so could you please share your email ID so that we can share uploaded file on OneDrive.

    Thanks,

    Mrudula


    Monday, November 24, 2014 7:43 AM
  • Right click on your uploaded project, use share option.

    Use Get a link option and then paste the url here.

    Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate the survey.

    Monday, November 24, 2014 7:48 AM
    Moderator
  • Thanks for help and link for my uploaded file on OneDrive is as follows:

    https://onedrive.live.com/redir?resid=320F3D6BD73595AF%21106

    This c# project where we tried UI automation for Microsoft Lync application. We are getting value for variable 'aePane' as Null.

    Thanks,

    Mrudula

    Monday, November 24, 2014 10:44 AM
  • Hi MrudulaC,

    I success in downloading your project, but I find it’s a WinForm working with UI automation API. This is out of our support range. This forum is to discuss Metro app development using C# or VB.NET. I would recommend you post new thread on the following forum for effective response. https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/home?forum=windowsaccessibilityandautomation.

    Thank you for understanding. If you have any concerns, please feel free to let me know.

    Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate the survey.

    Wednesday, November 26, 2014 8:16 AM
    Moderator
  • Thanks a lot and now I have posted my question in the forum that you have mentioned.

    Thanks,

    Mrudula

    Thursday, November 27, 2014 1:27 PM