7/6/2023 0 Comments Get ms edge![]() Guy IUIAutomationElement rootElement = uiAutomation.GetRootElement() If you find this code doesn't work for you, if you let me know exactly which elements are involved, I can look into it. The test code makes a few assumptions which might need tightening up, but overall it looks like it can get the data you need. The C# code uses a UIA interop dll that I generated through the tlbimp tool. I ran the code while Edge had a few tabs showing, and the page presented was. I wrote the code below to access the title, url and window handle, and it seemed to work ok. I'm not familiar with what's possible through Shell APIs here, but I just tried a test with UIA.
0 Comments
Leave a Reply. |