{"id":6145,"date":"2015-08-18T17:42:22","date_gmt":"2015-08-18T08:42:22","guid":{"rendered":"http:\/\/www.ka-net.org\/blog\/?p=6145"},"modified":"2017-08-18T16:04:36","modified_gmt":"2017-08-18T07:04:36","slug":"%e8%b5%b7%e5%8b%95%e4%b8%ad%e3%81%aemicrosoft-edge%e3%81%8b%e3%82%89%e3%82%bf%e3%82%a4%e3%83%88%e3%83%ab%e3%81%a8url%e3%82%92%e5%8f%96%e5%be%97%e3%81%99%e3%82%8bc%e3%82%b3%e3%83%bc%e3%83%89ui-automa","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=6145","title":{"rendered":"\u8d77\u52d5\u4e2d\u306eMicrosoft Edge\u304b\u3089\u30bf\u30a4\u30c8\u30eb\u3068URL\u3092\u53d6\u5f97\u3059\u308bC#\u30b3\u30fc\u30c9(UI Automation\u7de8)"},"content":{"rendered":"<p><span style=\"color: #ff0000; font-weight: bold;\">2017\/8\/18 \u8ffd\u8a18\uff1a<\/span><br \/>\n\u5f53\u8a18\u4e8b\u306e\u30b3\u30fc\u30c9\u306f\u73fe\u5728\u52d5\u4f5c\u3057\u306a\u304f\u306a\u3063\u3066\u3044\u308b\u305f\u3081\u3001\u65b0\u3057\u304f\u30b3\u30fc\u30c9\u3092\u66f8\u304d\u76f4\u3057\u307e\u3057\u305f\u3002<\/p>\n<div class=\"cardlink\"><a href=\"https:\/\/www.ka-net.org\/blog\/?p=9085\"><div class=\"cardlink_thumbnail\"><img src='https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-MicrosoftEdge-120x120.png' alt='\u30102017\u5e748\u6708\u7248\u3011\u8d77\u52d5\u4e2d\u306eMicrosoft Edge\u304b\u3089\u30bf\u30a4\u30c8\u30eb\u3068URL\u3092\u53d6\u5f97\u3059\u308bC#\u30b3\u30fc\u30c9' width=120 height=120 \/><\/a><\/div><div class=\"cardlink_content\"><span class=\"timestamp\">2017.08.18<\/span><div class=\"cardlink_title\"><a href=\"https:\/\/www.ka-net.org\/blog\/?p=9085\">\u30102017\u5e748\u6708\u7248\u3011\u8d77\u52d5\u4e2d\u306eMicrosoft Edge\u304b\u3089\u30bf\u30a4\u30c8\u30eb\u3068URL\u3092\u53d6\u5f97\u3059\u308bC#\u30b3\u30fc\u30c9 <\/a><\/div><div class=\"cardlink_excerpt\">\u5f53\u30d6\u30ed\u30b0\u3067\u306f\u3001Edge\u304b\u3089\u30bf\u30a4\u30c8\u30eb\u3068URL\u3092\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9\u306b\u3064\u3044\u3066\u3001\u3044\u304f\u3064\u304b\u8a18\u4e8b\u3092\u66f8\u3044\u3066\u304d\u307e\u3057\u305f\u3002\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\u3057\u304b\u3057\u3001\u73fe\u6642\u70b9(2018\u5e748\u6708)\u3067\u306fEdge\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306b\u4f34\u3044\u3053\u308c\u3089\u306e\u8a18\u4e8b\u306b\u3042\u308b\u30b3\u30fc\u30c9\u304c\u52d5\u4f5c\u3057\u306a\u304f\u306a\u3063\u3066\u3044\u308b\u305f\u3081\u3001\u4eca\u56de\u30b3\u30fc\u30c9\u3092\u66f8...<\/div><\/div><div class=\"cardlink_footer\"><\/div><\/div>\n<hr \/>\n<p>Microsoft Edge\u306e<a href=\"http:\/\/dev.modern.ie\/\" title=\"Developer Resources : Microsoft Edge Dev\" target=\"_blank\">Developer Resources<\/a>\u3092\u898b\u3066\u307f\u308b\u3068\u3001\u201c\u30b5\u30dd\u30fc\u30c8\u304c\u5fc5\u8981\u306a\u3089<a href=\"https:\/\/stackoverflow.com\/questions\/tagged\/microsoft-edge\" title=\"Newest 'microsoft-edge' Questions - Stack Overflow\" target=\"_blank\">Stack Overflow<\/a>\u3067\u805e\u3044\u3066\u306d\uff01\u201d\u7684\u306a\u3053\u3068\u304c\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066Stack Overflow\u306b\u306fEdge\u95a2\u9023\u306e\u8cea\u554f\u304c\u96c6\u307e\u3063\u3066\u3044\u308b\u308f\u3051\u3067\u3059\u304c\u3001\u5916\u90e8\u304b\u3089\u306e\u5236\u5fa1\u306b\u95a2\u3057\u3066\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306a\u8cea\u554f\u304c\u5bc4\u305b\u3089\u308c\u3066\u3044\u307e\u3059(2015\/8\/18 \u6642\u70b9)\u3002<\/p>\n<ul>\n<li>Microsoft Edge: Get Window URL and Title<\/li>\n<li style=\"list-style-type:none;\"><a href=\"http:\/\/stackoverflow.com\/questions\/31967430\/microsoft-edge-get-window-url-and-title\" target=\"_blank\" title=\"Microsoft Edge: Get Window URL and Title\">http:\/\/stackoverflow.com\/questions\/31967430\/microsoft-edge-get-window-url-and-title<\/a><\/li>\n<li>Get the Title and URL of all the pages opened in MS-Edge Browser<\/li>\n<li style=\"list-style-type:none;\"><a href=\"https:\/\/stackoverflow.com\/questions\/32049904\/get-the-title-and-url-of-all-the-pages-opened-in-ms-edge-browser\" target=\"_blank\" title=\"Get the Title and URL of all the pages opened in MS-Edge Browser\">https:\/\/stackoverflow.com\/questions\/32049904\/get-the-title-and-url-of-all-the-pages-opened-in-ms-edge-browser<\/a><\/li>\n<\/ul>\n<p>\u7279\u306b\u300c<a href=\"http:\/\/stackoverflow.com\/questions\/31967430\/microsoft-edge-get-window-url-and-title\" title=\".net - Microsoft Edge: Get Window URL and Title - Stack Overflow\" target=\"_blank\">Edge\u304b\u3089URL\u3068\u30bf\u30a4\u30c8\u30eb\u3092\u53d6\u5f97\u3057\u305f\u3044<\/a>\u300d\u3068\u3044\u3046\u8cea\u554f\u3067\u306f\u3001Microsoft\u306e\u4e2d\u306e\u4eba\u304c\u56de\u7b54\u3092\u3064\u3051\u3066\u3044\u3066\u3001UI Automation\u3092\u4f7f\u3063\u305f\u30b3\u30fc\u30c9\u3092\u7d39\u4ecb\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u5f53\u30d6\u30ed\u30b0\u3067\u3082\u3059\u3067\u306b<a href=\"\/\/www.ka-net.org\/blog\/?p=6076\" title=\"\u8d77\u52d5\u4e2d\u306eMicrosoft Edge\u304b\u3089\u30bf\u30a4\u30c8\u30eb\u3068URL\u3092\u53d6\u5f97\u3059\u308bVBA\u30de\u30af\u30ed(UI Automation\u7de8) | \u521d\u5fc3\u8005\u5099\u5fd8\u9332\" target=\"_blank\">\u3053\u306e\u8a18\u4e8b<\/a>\u3067\u540c\u69d8\u306e\u30b3\u30fc\u30c9\u3092\u7d39\u4ecb\u3057\u3066\u3044\u307e\u3059\u304c\u3001.NET\u3067\u306f\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u3044\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u826f\u3044\u6a5f\u4f1a\u306a\u306e\u3067C#\u3067\u3082\u540c\u3058\u51e6\u7406\u3092\u884c\u3046\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p><span style=\"color: #ff0000; font-weight: bold;\">\u203b UIAutomationClient, UIAutomationTypes \u8981\u53c2\u7167<\/span><\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">using System;\r\nusing System.Windows.Automation;\r\n\r\nnamespace UIAutomationEdge\r\n{\r\n  class Program\r\n  {\r\n    public static void Main(string&#x5B;] args)\r\n    {\r\n      AutomationElement root = AutomationElement.RootElement;\r\n      AutomationElement edge = root.FindFirst(TreeScope.Children, new PropertyCondition(AutomationElement.AutomationIdProperty, &quot;TitleBar&quot;));\r\n      edge = edge.FindFirst(TreeScope.Children, new PropertyCondition(AutomationElement.ClassNameProperty, &quot;Windows.UI.Core.CoreWindow&quot;));\r\n      if (edge != null) {\r\n        AutomationElement tabslist = edge.FindFirst(TreeScope.Children, new PropertyCondition(AutomationElement.AutomationIdProperty, &quot;TabsList&quot;));\r\n        AutomationElementCollection items = tabslist.FindAll(TreeScope.Children, new PropertyCondition(AutomationElement.ClassNameProperty, &quot;GridViewItem&quot;));\r\n        foreach (AutomationElement elm in items) {\r\n          SelectionItemPattern sel = (SelectionItemPattern)elm.GetCurrentPattern(SelectionItemPattern.Pattern);\r\n          sel.Select();\r\n          AutomationElement address = edge.FindFirst(TreeScope.Children, new PropertyCondition(AutomationElement.AutomationIdProperty, &quot;addressEditBox&quot;));\r\n          address.SetFocus();\r\n          ValuePattern v = (ValuePattern)address.GetCurrentPattern(ValuePattern.Pattern);\r\n          Console.WriteLine(&quot;Title:&quot; + elm.Current.Name + &quot;, URL:&quot; + v.Current.Value);\r\n        }\r\n      }\r\n    }\r\n  }\r\n}<\/pre>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/AutomateMicrosoftEdge_UIA_Csharp_01.gif\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/AutomateMicrosoftEdge_UIA_Csharp_01.gif\" alt=\"AutomateMicrosoftEdge_UIA_Csharp_01\" width=\"616\" height=\"629\" class=\"alignnone size-full wp-image-6146\" \/><\/a><\/p>\n<p>VBA\u306b\u6bd4\u3079\u3066\u5927\u5206\u30b9\u30c3\u30ad\u30ea\u3057\u305f\u30b3\u30fc\u30c9\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\n\u300c<a href=\"\/\/www.ka-net.org\/blog\/?p=6029\" title=\"PowerShell\u3067Microsoft Edge\u3092\u64cd\u4f5c\u3059\u308b | \u521d\u5fc3\u8005\u5099\u5fd8\u9332\" target=\"_blank\">PowerShell\u3067Microsoft Edge\u3092\u64cd\u4f5c\u3059\u308b<\/a>\u300d\u3067\u3082\u66f8\u3044\u3066\u3044\u308b\u901a\u308a\u3001Edge\u306e\u30aa\u30fc\u30c8\u30e1\u30fc\u30b7\u30e7\u30f3\u306b\u306fSelenium + WebDriver\u304c\u30aa\u30b9\u30b9\u30e1\u3067\u3059\u304c\u3001UI Automation\u3092\u4f7f\u3046\u5834\u5408\u306f.NET\u3067\u66f8\u3044\u305f\u65b9\u304c\u697d\u3067\u304d\u308b\u3060\u308d\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"2017\/8\/18 \u8ffd\u8a18\uff1a \u5f53\u8a18\u4e8b\u306e\u30b3\u30fc\u30c9\u306f\u73fe\u5728\u52d5\u4f5c\u3057\u306a\u304f\u306a\u3063\u3066\u3044\u308b\u305f\u3081\u3001\u65b0\u3057\u304f\u30b3\u30fc\u30c9\u3092\u66f8\u304d\u76f4\u3057\u307e\u3057\u305f\u3002 Microsoft Edge\u306eDeveloper Resources\u3092\u898b\u3066\u307f\u308b\u3068\u3001\u201c\u30b5\u30dd\u30fc\u30c8\u304c\u5fc5\u8981\u306a\u3089Stack  [&hellip;]","protected":false},"author":1,"featured_media":7115,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"\u305d\u308d\u305d\u308d\u98fd\u304d\u3066\u304d\u305f #Edge \u5236\u5fa1\u3002 [\u8d77\u52d5\u4e2d\u306eMicrosoft Edge\u304b\u3089\u30bf\u30a4\u30c8\u30eb\u3068URL\u3092\u53d6\u5f97\u3059\u308bC#\u30b3\u30fc\u30c9(UI Automation\u7de8)]","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[132,25,133],"tags":[],"class_list":["post-6145","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-windows10","category-windows","category-microsoft-edge"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-MicrosoftEdge.png","jetpack_shortlink":"https:\/\/wp.me\/p4UZZr-1B7","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6145","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6145"}],"version-history":[{"count":3,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6145\/revisions"}],"predecessor-version":[{"id":9089,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6145\/revisions\/9089"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/7115"}],"wp:attachment":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6145"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6145"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}