New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to locate Grids or Windows #1989
Comments
What is shown in inspect.exe? |
No the one that comes with windows SDK. |
I think I found something. If I try to find the nested button, it won't find it....until I click the parent's File menu option. Is that required? Why can't it find the nested file menu exit button? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am trying to test drive a WPF application. I have the WinAppDriver loading properly, and the Driver as well opening up my application. However, when I try to FindElement for a Window or a Grid, I get an error.
OpenQA.Selenium.WebDriverException: 'An element could not be located on the page using the given search parameters.'
My find is quite simple IMHO.
var mainWindow = Driver.FindElementByAccessibilityId("MainWindowGrid");
Likewise the xaml is simple.
<Grid.RowDefinitions>
.....
It seems like the only thing I can find is a Button. What am I doing wrong that I cannot locate anything useful? Please help. Thank you.
The text was updated successfully, but these errors were encountered: