{"id":6458,"date":"2015-12-18T11:30:01","date_gmt":"2015-12-18T02:30:01","guid":{"rendered":"http:\/\/www.ka-net.org\/blog\/?p=6458"},"modified":"2017-08-11T12:52:24","modified_gmt":"2017-08-11T03:52:24","slug":"selenium-webdriver%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6microsoft-edge%e3%81%a8office%e3%82%92%e9%80%a3%e6%90%ba%e3%81%95%e3%81%9b%e3%82%8b%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=6458","title":{"rendered":"Selenium WebDriver\u3092\u4f7f\u7528\u3057\u3066Microsoft Edge\u3068Office\u3092\u9023\u643a\u3055\u305b\u308b\u3002"},"content":{"rendered":"<p>\u3053\u306e\u8a18\u4e8b\u306f<a href=\"http:\/\/qiita.com\/advent-calendar\/2015\/selenium\" title=\"Selenium\/Appium Advent Calendar 2015 - Qiita\" target=\"_blank\">Selenium\/Appium\u30a2\u30c9\u30d9\u30f3\u30c8\u30ab\u30ec\u30f3\u30c0\u30fc2015<\/a>\u306e18\u65e5\u76ee\u306e\u8a18\u4e8b\u3067\u3059\u3002<\/p>\n<hr \/>\n<h4 class=\"style4a\">\u306f\u3058\u3081\u306b<\/h4>\n<p><a href=\"http:\/\/qiita.com\/advent-calendar\/2015\/selenium\" title=\"Selenium\/Appium Advent Calendar 2015 - Qiita\" target=\"_blank\">Selenium\u30a2\u30c9\u30d9\u30f3\u30c8\u30ab\u30ec\u30f3\u30c0\u30fc<\/a>\u306b\u4e71\u5165\u3059\u308b\u306b\u3042\u305f\u308a\u3001\u307e\u305a\u306f\u7c21\u5358\u306b\u81ea\u5df1\u7d39\u4ecb\u3092\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u540d\u524d\uff1a\u304d\u306c\u3042\u3055(<a href=\"https:\/\/twitter.com\/kinuasa\" title=\"\u304d\u306c\u3042\u3055 (@kinuasa) | Twitter\" target=\"_blank\">@kinuasa<\/a>)<\/li>\n<li>\u8077\u696d\uff1a\u4f1a\u793e\u54e1(\u4e00\u822c\u4e8b\u52d9)<\/li>\n<li>\u6d3b\u52d5\uff1a<a href=\"https:\/\/mvp.microsoft.com\/ja-jp\/PublicProfile\/4029057\" title=\"\" target=\"_blank\">Microsoft MVP<\/a><\/li>\n<\/ul>\n<p>\u666e\u6bb5\u306f\u4e8b\u52d9\u3068\u3057\u3066\u50cd\u3044\u3066\u3044\u308b\u305f\u3081\u3001\u30c6\u30b9\u30c8\u3082\u958b\u767a\u3082\u7121\u7e01\u306a\u306e\u3067\u3059\u304c\u3001\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u81ea\u52d5\u5316\u30fb\u30aa\u30fc\u30c8\u30e1\u30fc\u30b7\u30e7\u30f3<\/span>\u300d\u3068\u3044\u3063\u305f\u8a00\u8449\u306f\u597d\u304d\u306a\u306e\u3067\u3001Word\u3084Excel\u7b49\u306eOffice \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3084Web\u30d6\u30e9\u30a6\u30b6\u30fc\u306e\u5236\u5fa1\u306b\u3064\u3044\u3066\u3001\u3053\u306e\u30d6\u30ed\u30b0\u3067\u3082\u3061\u3087\u304f\u3061\u3087\u304f\u53d6\u308a\u6271\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4e0a\u8a18\u306e\u901a\u308a\u3001\u666e\u6bb5\u306f\u30d7\u30ed\u30b0\u30e9\u30e0\u958b\u767a\u306b\u643a\u308f\u308b\u3053\u3068\u304c\u306a\u3044\u306e\u3067\u3001\u4f1a\u793e\u3067\u4f7f\u7528\u3057\u3066\u3044\u308bPC\u306b\u3082Visual Studio\u7b49\u306e\u958b\u767a\u74b0\u5883\u304c\u5165\u3063\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<p>\u305d\u3093\u306a\u4e8b\u52d9\u54e1\u306e\u79c1\u3067\u3082\u624b\u8efd\u306b\u4f7f\u3048\u308b\u3001\u81ea\u52d5\u5316\u306e\u305f\u3081\u306e\u9053\u5177\u304c<span style=\"color: #ff0000; font-weight: bold;\">\u201cVBA(Visual Basic for Applications)\u201d<\/span>\u3067\u3059\u3002<br \/>\n\u3053\u308c\u306a\u3089\u3070\u3001Word\u3084Excel\u304b\u3089\u3059\u3050\u306b\u30a8\u30c7\u30a3\u30bf\u3092\u958b\u304d\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u7d44\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h4 class=\"style4a\">VBA\u306b\u3088\u308bWeb\u30d6\u30e9\u30a6\u30b6\u30fc\u306e\u5236\u5fa1<\/h4>\n<p>Web\u30d6\u30e9\u30a6\u30b6\u30fc\u306e\u64cd\u4f5c\u3092VBA\u304b\u3089\u884c\u3046\u5834\u5408(\u305d\u3082\u305d\u3082\u696d\u52d9\u3067\u306f\u30d6\u30e9\u30a6\u30b6\u30fc\u5236\u5fa1\u3059\u308b\u6a5f\u4f1a\u3082\u7121\u3044\u306e\u3067\u3059\u304c\u3001\u305d\u3053\u306f\u7f6e\u3044\u3066\u304a\u304d\u307e\u3059)\u3001\u9244\u677f\u306a\u306e\u304c\u300c<span style=\"color: #ff0000; font-weight: bold;\">Internet Explorer(COM)\u30aa\u30fc\u30c8\u30e1\u30fc\u30b7\u30e7\u30f3<\/span>\u300d\u3067\u3059\u3002<\/p>\n<p>\u60c5\u5831\u91cf\u3082\u975e\u5e38\u306b\u591a\u304f\u3001\u300cCreateObject(&#8220;InternetExplorer.Application&#8221;)\u300d\u3092\u30ad\u30fc\u30ef\u30fc\u30c9\u306b\u691c\u7d22\u3059\u308c\u3070\u3001Microsoft\u306e\u60c5\u5831\u3092\u542b\u3081\u3066\u69d8\u3005\u306a\u30b5\u30a4\u30c8\u304c\u30d2\u30c3\u30c8\u3057\u307e\u3059\u3002<\/p>\n<p>\u3068\u3053\u308d\u304c\u3001Windows 10\u3067\u306fOS\u306e\u6a19\u6e96\u30d6\u30e9\u30a6\u30b6\u30fc\u304c<a href=\"https:\/\/www.microsoft.com\/ja-jp\/windows\/microsoft-edge\" title=\"Microsoft Edge - \u30de\u30a4\u30af\u30ed\u30bd\u30d5\u30c8\" target=\"_blank\">Microsoft Edge<\/a>\u306b\u5909\u308f\u308a\u3001COM\u30aa\u30fc\u30c8\u30e1\u30fc\u30b7\u30e7\u30f3\u304c\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u306a\u304f\u306a\u308a\u307e\u3057\u305f(Edge\u3067\u306f\u306a\u304f\u5f15\u304d\u7d9a\u304d\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u308bIE\u3092\u4f7f\u3048\u3070\u6e08\u3080\u8a71\u3067\u3059\u304c\u3001\u305d\u308c\u3082\u3053\u3053\u3067\u306f\u7f6e\u3044\u3066\u304a\u304d\u307e\u3059)\u3002<\/p>\n<blockquote><p>Microsoft Edge will not support the COM automation interface (InternetExplorer object) that you referred to.<\/p>\n<p>For automation scenarios, our direction is to support of the WebDriver interface that is supported across browsers. WebDriver support is now available in Microsoft Edge on Windows 10 and requires a separate executable that you can download.<\/p>\n<p>To get an idea of capabilities, you can refer to the Microsoft Edge WebDriver status page which will be kept up-to-date with the latest WebDriver commands available.<\/p><\/blockquote>\n<p><a href=\"http:\/\/stackoverflow.com\/a\/31306444\" title=\"internet explorer - Will Microsoft Edge support COM automation (InternetExplorer object)? - Stack Overflow\" target=\"_blank\">http:\/\/stackoverflow.com\/a\/31306444<\/a> \u3088\u308a<\/p>\n<p>\u305d\u308c\u3067\u306f\u3001Edge\u64cd\u4f5c\u306e\u81ea\u52d5\u5316\u304c\u3067\u304d\u306a\u3044\u306e\u304b\u3068\u3044\u3046\u3068\u305d\u3046\u3067\u306f\u306a\u304f\u3001\u4e0a\u8a18Stack Overflow\u306e\u56de\u7b54\u306e\u901a\u308a\u3001\u300c<a href=\"https:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=48212\" title=\"Download Microsoft WebDriver from Official Microsoft Download Center\" target=\"_blank\">WebDriver<\/a>\u300d\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u5916\u90e8\u304b\u3089Edge\u3092\u64cd\u4f5c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h4 class=\"style4a\">SeleniumBasic\u306b\u3088\u308bEdge\u5236\u5fa1<\/h4>\n<p>Edge\u306fWebDriver\u7d4c\u7531\u3067\u306e\u64cd\u4f5c\u304c\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u308b\u3001\u3068\u3044\u3046\u3053\u3068\u304c\u5206\u304b\u3063\u305f\u3068\u3053\u308d\u3067Microsoft Edge Dev Blog\u306b\u3042\u308b\u8a18\u4e8b\u300c<a href=\"https:\/\/blogs.windows.com\/msedgedev\/2015\/07\/23\/bringing-automated-testing-to-microsoft-edge-through-webdriver\/\" title=\"Bringing automated testing to Microsoft Edge through WebDriver | Microsoft Edge Dev Blog\" target=\"_blank\">Bringing automated testing to Microsoft Edge through WebDriver<\/a>\u300d\u3092\u898b\u3066\u307f\u308b\u3068\u3001Edge\u3092\u64cd\u4f5c\u3057\u3066\u30da\u30fc\u30b8\u79fb\u52d5\u3057\u305f\u308a\u30ad\u30fc\u30b9\u30c8\u30ed\u30fc\u30af\u3092\u9001\u4fe1\u3057\u305f\u308a\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u304c\u8f09\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u8f09\u3063\u3066\u3044\u308b\u30b3\u30fc\u30c9\u306f<span style=\"color: #ff0000; font-weight: bold;\">C#<\/span>\u3067\u3059\u3002VBA\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<br \/>\n<a href=\"http:\/\/docs.seleniumhq.org\/download\/\" title=\"Downloads\" target=\"_blank\">Selenium\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30da\u30fc\u30b8<\/a>\u3092\u898b\u3066\u3082\u3001\u5bfe\u5fdc\u8a00\u8a9e\u306e\u4e2d\u306bVBA\u306f\u5165\u3063\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<p>\u4e00\u898b\u3059\u308b\u3068\u3001VBA\u304b\u3089Selenium WebDriver\u306f\u6271\u3048\u306a\u3044\u3088\u3046\u306b\u898b\u3048\u308b\u306e\u3067\u3059\u304c\u3001\u305d\u3053\u306f\u5927\u4e08\u592b\u3067\u3059\u3002<br \/>\n\u3061\u3083\u3093\u3068VBA\u5411\u3051\u306e\u30e9\u30c3\u30d1\u30fc\u300c<a href=\"http:\/\/florentbr.github.io\/SeleniumBasic\/\" title=\"Seleniumbasic\" target=\"_blank\">SeleniumBasic<\/a>\u300d(\u65e7Selenium VBA)\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\nv2.0.6.0 \u3067Edge\u306eWebDriver\u3082\u30b5\u30dd\u30fc\u30c8\u3057\u3001\u3053\u308c\u3092\u4f7f\u3048\u3070VBA\u304b\u3089Edge\u3092\u64cd\u4f5c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<h4 class=\"style4a\">Edge\u3068Office\u306e\u9023\u643a<\/h4>\n<p>\u4eca\u56de\u30a2\u30c9\u30d9\u30f3\u30c8\u30ab\u30ec\u30f3\u30c0\u30fc\u306e\u8a18\u4e8b\u3092\u66f8\u304f\u306b\u3042\u305f\u308a\u3001Office\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u9593\u306e\u9023\u643a\u304c\u53d6\u308a\u3084\u3059\u3044VBA\u3092\u6d3b\u304b\u3059\u305f\u3081\u3001<span style=\"color: #ff0000; font-weight: bold;\">\u201cExcel\u30d5\u30a1\u30a4\u30eb\u304b\u3089URL\u3092\u8aad\u307f\u8fbc\u307f\u3001Edge\u3067\u5de1\u56de\u3057\u305f\u7d50\u679c\u3092\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u3068\u3057\u3066Word\u30d5\u30a1\u30a4\u30eb\u306b\u8cbc\u308a\u3064\u3051\u308b\u51e6\u7406\u201d<\/span>\u3092\u8003\u3048\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u300c<a href=\"\/\/www.ka-net.org\/blog\/?p=6394\" title=\"SeleniumBasic(Selenium VBA)\u304cMicrosoft Edge\u306b\u5bfe\u5fdc\u3057\u307e\u3057\u305f\u3002 | \u521d\u5fc3\u8005\u5099\u5fd8\u9332\" target=\"_blank\">SeleniumBasic(Selenium VBA)\u304cMicrosoft Edge\u306b\u5bfe\u5fdc\u3057\u307e\u3057\u305f\u3002<\/a>\u300d\u8a18\u4e8b\u3067\u3082\u66f8\u3044\u305f\u901a\u308a\u3001VBA\u306b\u3088\u308bEdge\u64cd\u4f5c\u306e\u52d5\u4f5c\u78ba\u8a8d\u3082OK\u3067\u3059\u3002<\/p>\n<p>\u30fb\u30fb\u30fb\u3057\u304b\u3057\u3001\u3044\u3056\u30b3\u30fc\u30c9\u3092\u8d70\u3089\u305b\u3066\u307f\u308b\u3068\u3001<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/SeleniumAdventCalendar2015_01.jpg\" alt=\"SeleniumAdventCalendar2015_01\" width=\"301\" height=\"173\" class=\"alignnone size-full wp-image-6459\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/SeleniumAdventCalendar2015_01.jpg 301w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/SeleniumAdventCalendar2015_01-300x172.jpg 300w\" sizes=\"auto, (max-width: 301px) 100vw, 301px\" \/><\/p>\n<p><span style=\"color: #ff0000; font-weight: bold;\">\u30aa\u30fc\u30c8\u30e1\u30fc\u30b7\u30e7\u30f3 \u30a8\u30e9\u30fc\uff01<\/span><br \/>\n\u4e0a\u8a18\u8a18\u4e8b\u3068\u307e\u3063\u305f\u304f\u540c\u3058\u30b3\u30fc\u30c9\u3092\u8d70\u3089\u305b\u305f\u306b\u3082\u95a2\u308f\u3089\u305a\u51e6\u7406\u3092\u7d9a\u884c\u3067\u304d\u305a\u3001SeleniumBasic\u3092\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3082\u540c\u3058\u72b6\u6cc1\u3067\u3059\u3002\u4ed6\u306e\u74b0\u5883\u3067\u3082\u540c\u69d8\u306e\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>SeleniumBasic\u306e\u30b3\u30fc\u30c9\u3092\u6df1\u304f\u8ffd\u3063\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u3069\u3053\u3067\u3064\u307e\u3065\u3044\u3066\u3044\u308b\u306e\u304b\u306f\u5206\u304b\u308a\u307e\u305b\u3093\u304c\u3001Edge\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306bSeleniumBasic\u5074\u304c\u8ffd\u3044\u3064\u3044\u3066\u3044\u306a\u3044\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<br \/>\n\u539f\u56e0\u306f\u4e0d\u660e\u3067\u3059\u304c\u3001\u5206\u304b\u308b\u3053\u3068\u306f\u4e00\u3064\u3001<\/p>\n<p><span style=\"color: #ff0000; font-weight: bold;\">\u300c\u3053\u306e\u307e\u307e\u3067\u306fSeleniumBasic\u3067\u306eEdge\u64cd\u4f5c\u306b\u3064\u3044\u3066\u8a18\u4e8b\u304c\u66f8\u3051\u306a\u3044\u300d<\/span><\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<br \/>\n\u52d5\u4f5c\u78ba\u8a8d\u6642\u306e\u74b0\u5883\u3092\u518d\u69cb\u7bc9\u3059\u308c\u3070\u3001\u518d\u3073\u30b3\u30fc\u30c9\u3092\u52d5\u4f5c\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001OS\u3092\u4e00\u304b\u3089\u5165\u308c\u306a\u304a\u3059\u306e\u306f\u975e\u5e38\u306b\u9762\u5012\u3067\u3059\u3002<\/p>\n<h4 class=\"style4a\">SeleniumBasic\u3092\u8ae6\u3081\u308b<\/h4>\n<p>\u3067\u306f\u3069\u3046\u3059\u308b\u304b\uff1f<br \/>\n\u3082\u3046\u8272\u3005\u8003\u3048\u308b\u306e\u306f\u9762\u5012\u304f\u3055\u3044\u306e\u3067\u3001SeleniumBasic\u3092\u4f7f\u308f\u305a<span style=\"color: #ff0000; font-weight: bold;\">.NET<\/span>\u3067\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3053\u3068\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>.NET\u304b\u3089Office \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u64cd\u4f5c\u3059\u308b\u65b9\u6cd5\u306e\u4e00\u3064\u3068\u3057\u3066COM\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u547c\u3073\u51fa\u3057(Interop)\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u306e\u65b9\u6cd5\u306f\u7d50\u69cb\u3084\u3063\u304b\u3044\u3067\u3059\u3002<br \/>\n\u3061\u3087\u3063\u3068\u3067\u3082COM\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u89e3\u653e\u3057\u5fd8\u308c\u304c\u3042\u308b\u3068\u3001\u30d7\u30ed\u30bb\u30b9\u304c\u6b8b\u308a\u7d9a\u3051\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u3010VB.NET\u3011VB.NET \u304b\u3089 Excel \u306e COM \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u64cd\u4f5c\u3059\u308b\u5834\u5408\u306e\u6ce8\u610f\u70b9<\/li>\n<li style=\"list-style-type:none;\"><a href=\"http:\/\/blogs.timberlandchapel.com\/blogs\/timberlandchapel\/articles\/1149.aspx\" target=\"_blank\" title=\"\u3010VB.NET\u3011VB.NET \u304b\u3089 Excel \u306e COM \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u64cd\u4f5c\u3059\u308b\u5834\u5408\u306e\u6ce8\u610f\u70b9\">http:\/\/blogs.timberlandchapel.com\/blogs\/timberlandchapel\/articles\/1149.aspx<\/a><\/li>\n<li>COM \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u53c2\u7167\u30ab\u30a6\u30f3\u30c8\u3092\u89e3\u653e\u3059\u308b<\/li>\n<li style=\"list-style-type:none;\"><a href=\"http:\/\/jeanne.wankuma.com\/tips\/vb.net\/programming\/releasecom.html\" target=\"_blank\" title=\"COM \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u53c2\u7167\u30ab\u30a6\u30f3\u30c8\u3092\u89e3\u653e\u3059\u308b\">http:\/\/jeanne.wankuma.com\/tips\/vb.net\/programming\/releasecom.html<\/a><\/li>\n<li>Excel\u306eInterop\u64cd\u4f5c\u3092\u7ba1\u7406\u3059\u308b\u30af\u30e9\u30b9 (Microsoft.Office.Interop.Excel, COM, Marshal.ReleaseComObject)<\/li>\n<li style=\"list-style-type:none;\"><a href=\"http:\/\/devlights.hatenablog.com\/entry\/20100223\/p1\" target=\"_blank\" title=\"Excel\u306eInterop\u64cd\u4f5c\u3092\u7ba1\u7406\u3059\u308b\u30af\u30e9\u30b9 (Microsoft.Office.Interop.Excel, COM, Marshal.ReleaseComObject)\">http:\/\/devlights.hatenablog.com\/entry\/20100223\/p1<\/a><\/li>\n<li>[VSTO]VSTO\u304b\u3089\u306eExcel\u547c\u3073\u51fa\u3057\u306f\u3084\u3063\u3071\u308aCOM\u3063\u307d\u3044 <- \u3061\u3087\u3063\u3068\u9055\u3046<\/li>\n<li style=\"list-style-type:none;\"><a href=\"http:\/\/blogs.wankuma.com\/fnya\/archive\/2008\/01\/14\/117356.aspx\" target=\"_blank\" title=\"[VSTO]VSTO\u304b\u3089\u306eExcel\u547c\u3073\u51fa\u3057\u306f\u3084\u3063\u3071\u308aCOM\u3063\u307d\u3044 <- \u3061\u3087\u3063\u3068\u9055\u3046\">http:\/\/blogs.wankuma.com\/fnya\/archive\/2008\/01\/14\/117356.aspx<\/a><\/li>\n<\/ul>\n<p>\u305d\u3053\u3067\u51fa\u756a\u3068\u306a\u308b\u306e\u304c\u300c<a href=\"http:\/\/netoffice.codeplex.com\/\" title=\"NetOffice - MS Office in .NET (proudly presents on Codeplex only) - Home\" target=\"_blank\">NetOffice<\/a>\u300d\u3002<br \/>\n\u3053\u308c\u3092\u4f7f\u3046\u3068\u3001VBA\u306e\u3088\u3046\u306a\u624b\u8efd\u3055\u3067Word\u3084Excel\u3092.NET\u304b\u3089\u64cd\u4f5c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h4 class=\"style4a\">\u7d50\u5c40C#\u3067\u30b3\u30fc\u30c9\u3092\u66f8\u304f<\/h4>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u3001\u66f8\u3044\u305f\u30b3\u30fc\u30c9\u304c\u4e0b\u8a18\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\/*\r\n * \u30ea\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb(Excel)\u306b\u3042\u308bURL\u3092Edge\u3067\u5de1\u56de\u3057\u3066\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u3092\u64ae\u308a\u3001\r\n * Word\u6587\u66f8\u306b\u8cbc\u308a\u4ed8\u3051\u308b\u3002\r\n * \r\n * @kinuasa\r\n * \r\n * &#x5B;\u8981\u53c2\u7167]\r\n * System.Drawing, System.Windows.Forms,\r\n * NetOffice(NetOffice.dll),\r\n * ExcelApi(ExcelApi.dll),\r\n * WordApi(WordApi.dll),\r\n * WebDriver(WebDriver.dll),\r\n * WebDriver.Support(WebDriver.Support.dll)\r\n *\/\r\nusing System;\r\nusing System.IO;\r\nusing System.Drawing;\r\nusing System.Windows.Forms;\r\nusing Excel = NetOffice.ExcelApi;\r\nusing Word = NetOffice.WordApi;\r\nusing OpenQA.Selenium;\r\nusing OpenQA.Selenium.Edge;\r\nusing OpenQA.Selenium.Support.UI;\r\n\r\nnamespace SampleApp\r\n{\r\n  class Program\r\n  {\r\n    &#x5B;STAThread]\r\n    public static void Main(string&#x5B;] args)\r\n    {\r\n      \/\/Excel\u51e6\u7406\r\n      Excel.Application appEx = new Excel.Application();\r\n      appEx.Visible = true;\r\n      Excel.Workbook wbMain = appEx.Workbooks.Open(@&quot;C:\\Test\\Urls.xlsx&quot;);\r\n      Excel.Worksheet wsMain = (Excel.Worksheet)wbMain.Worksheets&#x5B;1];\r\n      \r\n      \/\/Word\u51e6\u7406\r\n      Word.Application appWd = new Word.Application();\r\n      appWd.Visible = true;\r\n      Word.Document docMain = (Word.Document)appWd.Documents.Add();\r\n      Word.Table tblMain = docMain.Tables.Add(docMain.Range(), 1, 2);\r\n      tblMain.Cell(1, 1).Range.Text = &quot;URL&quot;;\r\n      tblMain.Cell(1, 2).Range.Text = &quot;ScreenShot&quot;;\r\n      Word.Row rowTbl = null;\r\n      \r\n      \/\/Edge\u51e6\u7406\r\n      const string folderName = &quot;Microsoft Web Driver&quot;;\r\n      string serverPath = System.IO.Path.Combine(\r\n        System.Environment.GetFolderPath(\r\n          System.Environment.SpecialFolder.ProgramFilesX86\r\n        ), folderName\r\n      );\r\n      EdgeDriver driver = new EdgeDriver(serverPath);\r\n      WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(30));\r\n      \r\n      foreach (Excel.Range rng in wsMain.UsedRange) {\r\n        driver.Navigate().GoToUrl((string)rng.Value);\r\n        wait.Until(x =&gt; ((IJavaScriptExecutor)driver).ExecuteScript(&quot;return document.readyState&quot;).Equals(&quot;complete&quot;));\r\n        byte&#x5B;] ss = ((ITakesScreenshot)driver).GetScreenshot().AsByteArray;\r\n        using (MemoryStream ms = new MemoryStream(ss)) {\r\n          Clipboard.SetImage(Image.FromStream(ms)); \/\/MemoryStream\u304b\u3089Image\u3092\u4f5c\u6210\u3057\u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u306b\u683c\u7d0d\r\n        }\r\n        rowTbl = tblMain.Rows.Add();\r\n        rowTbl.Cells&#x5B;1].Range.Text = (string)rng.Value;\r\n        rowTbl.Cells&#x5B;2].Range.Paste(); \/\/\u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u304b\u3089\u753b\u50cf\u8cbc\u308a\u4ed8\u3051\r\n      }\r\n      \r\n      driver.Quit();\r\n      wbMain.Close(false);\r\n      appEx.Quit();\r\n      appEx.Dispose();\r\n      MessageBox.Show(&quot;\u51e6\u7406\u304c\u7d42\u4e86\u3057\u307e\u3057\u305f\u3002&quot;);\r\n    }\r\n  }\r\n}<\/pre>\n<p>\u3084\u3063\u3064\u3051\u3067\u66f8\u3044\u305f\u306e\u3067\u30a8\u30e9\u30fc\u51e6\u7406\u7686\u7121\u3067\u3059\u304c\u3001\u30b3\u30fc\u30c9\u3092\u8d70\u3089\u305b\u308b\u3068\u4e00\u5fdc\u76ee\u7684\u306f\u9054\u6210\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/SeleniumAdventCalendar2015_02.gif\" alt=\"SeleniumAdventCalendar2015_02\" width=\"603\" height=\"475\" class=\"alignnone size-full wp-image-6460\" \/><\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u958b\u767a\u74b0\u5883\u306f\u300c<a href=\"http:\/\/portableapps.com\/node\/32713\" title=\"SharpDevelop Portable 4.3.3 Development Test 1 | PortableApps.com - Portable software for USB, portable and cloud drives\" target=\"_blank\">SharpDevelop Portable<\/a>\u300d\u3092\u4f7f\u7528\u3057\u307e\u3057\u305f\u3002<\/p>\n<h4 class=\"style4a\">\u304a\u308f\u308a\u306b<\/h4>\n<p>\u5f53\u521d\u306fSeleniumBasic\u3092\u4f7f\u3063\u3066\u624b\u8efd\u306bVBA\u304b\u3089Edge\u64cd\u4f5c\u3092\u884c\u3046\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8a18\u4e8b\u3092\u66f8\u304f\u4e88\u5b9a\u3060\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u601d\u308f\u306c\u3068\u3053\u308d\u3067\u5931\u6557\u3001\u7d50\u5c40.NET\u5411\u3051\u306eSelenium\u3092\u4f7f\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u4ed6\u306e\u30d6\u30e9\u30a6\u30b6\u30fc\u5236\u5fa1\u3067\u3067\u304d\u308b\u3053\u3068\u304cEdge\u3067\u3067\u304d\u306a\u304b\u3063\u305f\u308a\u3001Edge\u306e\u30aa\u30fc\u30c8\u30e1\u30fc\u30b7\u30e7\u30f3\u306b\u3064\u3044\u3066\u306f\u3001\u307e\u3060\u307e\u3060\u4e0d\u5b89\u5b9a\u306a\u3068\u3053\u308d\u304c\u3042\u308b\u3068\u500b\u4eba\u7684\u306b\u306f\u611f\u3058\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>WebDriver\u3092\u4f7f\u308f\u305a\u3001UI Automation\u3084Internet Explorer_Server\u30af\u30e9\u30b9\u306e\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u4f7f\u3046\u65b9\u6cd5(<a href=\"\/\/www.ka-net.org\/blog\/?p=6283\" title=\"\u8d77\u52d5\u4e2d\u306eMicrosoft Edge\u304b\u3089\u30bf\u30a4\u30c8\u30eb\u3068URL\u3092\u53d6\u5f97\u3059\u308bC#\u30b3\u30fc\u30c9(DOM\u7de8) | \u521d\u5fc3\u8005\u5099\u5fd8\u9332\" target=\"_blank\">\u8d77\u52d5\u4e2d\u306eMicrosoft Edge\u304b\u3089\u30bf\u30a4\u30c8\u30eb\u3068URL\u3092\u53d6\u5f97\u3059\u308bC#\u30b3\u30fc\u30c9(DOM\u7de8)<\/a> \u53c2\u7167)\u3082\u3042\u308a\u307e\u3059\u304c\u3001\u305d\u3061\u3089\u3082\u51e6\u7406\u304c\u7169\u96d1\u306a\u306e\u3067\u3001\u3042\u307e\u308a\u30aa\u30b9\u30b9\u30e1\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>\u3068\u306f\u3044\u3063\u3066\u3082\u3001Edge\u81ea\u4f53\u307e\u3060\u51fa\u59cb\u3081\u306e\u30d6\u30e9\u30a6\u30b6\u30fc\u3067\u3001\u6a5f\u80fd\u3082\u3069\u3093\u3069\u3093\u8ffd\u52a0\u3055\u308c\u3066\u3044\u308b\u6bb5\u968e\u3067\u3059\u306e\u3067\u3001SeleniumBasic\u542b\u3081\u3066\u4eca\u5f8c\u306b\u671f\u5f85\uff01\uff01\u2026\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306e\u8a18\u4e8b\u3092\u7de0\u3081\u304f\u304f\u308a\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<div id=\"single_banner_area2\" class=\"clearfix one_banner\">\n<div class=\"single_banner single_banner_left\">\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\r\n<!-- \u8a18\u4e8b\u4e2d(\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u5e83\u544a\u30e6\u30cb\u30c3\u30c8) -->\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block\"\r\n     data-ad-client=\"ca-pub-7306936664602087\"\r\n     data-ad-slot=\"5429724765\"\r\n     data-ad-format=\"auto\"\r\n     data-full-width-responsive=\"true\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script>\n<\/div>\n<div class=\"single_banner single_banner_right\">\n<a href=\"\" target=\"_blank\"><img decoding=\"async\" src=\"\" alt=\"\" title=\"\" \/><\/a>\n<\/div>\n<\/div>\n\n","protected":false},"excerpt":{"rendered":"\u3053\u306e\u8a18\u4e8b\u306fSelenium\/Appium\u30a2\u30c9\u30d9\u30f3\u30c8\u30ab\u30ec\u30f3\u30c0\u30fc2015\u306e18\u65e5\u76ee\u306e\u8a18\u4e8b\u3067\u3059\u3002 \u306f\u3058\u3081\u306b Selenium\u30a2\u30c9\u30d9\u30f3\u30c8\u30ab\u30ec\u30f3\u30c0\u30fc\u306b\u4e71\u5165\u3059\u308b\u306b\u3042\u305f\u308a\u3001\u307e\u305a\u306f\u7c21\u5358\u306b\u81ea\u5df1\u7d39\u4ecb\u3092\u3057\u3066\u304a\u304d\u307e\u3059\u3002 \u540d\u524d\uff1a\u304d\u306c\u3042\u3055(@kin [&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":"[Selenium WebDriver\u3092\u4f7f\u7528\u3057\u3066Microsoft Edge\u3068Office\u3092\u9023\u643a\u3055\u305b\u308b]","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,154],"tags":[],"class_list":["post-6458","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-windows10","category-windows","category-microsoft-edge","category-selenium"],"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-1Ga","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6458","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=6458"}],"version-history":[{"count":3,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6458\/revisions"}],"predecessor-version":[{"id":9038,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6458\/revisions\/9038"}],"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=6458"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6458"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6458"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}