{"id":6879,"date":"2016-04-01T15:23:55","date_gmt":"2016-04-01T06:23:55","guid":{"rendered":"http:\/\/www.ka-net.org\/blog\/?p=6879"},"modified":"2017-08-11T12:59:38","modified_gmt":"2017-08-11T03:59:38","slug":"windows-application-driver%e3%82%92%e8%a9%a6%e3%81%97%e3%81%a6%e3%81%bf%e3%81%be%e3%81%97%e3%81%9f%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=6879","title":{"rendered":"Windows Application Driver\u3092\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u3002"},"content":{"rendered":"<p><a href=\"https:\/\/build.microsoft.com\/\" title=\"Microsoft Build Developer Conference | March 30 - April 1, 2016\" target=\"_blank\">Build 2016<\/a>\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u300c<a href=\"https:\/\/channel9.msdn.com\/events\/Build\/2016\/P499\" title=\"UI Test Automation for Browsers and Apps Using the WebDriver Standard | Build 2016 | Channel 9\" target=\"_blank\">UI Test Automation for Browsers and Apps Using the WebDriver Standard<\/a>\u300d\u3067<a href=\"https:\/\/github.com\/Microsoft\/WinAppDriver\" title=\"Windows Application Driver(WinAppDriver)\" target=\"_blank\">Windows Application Driver(WinAppDriver)<\/a>\u304c\u7d39\u4ecb\u3055\u308c\u3066\u3044\u305f\u306e\u3067\u3001\u3055\u3063\u305d\u304f\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<h4 class=\"style4a\">\u4e0b\u6e96\u5099<\/h4>\n<ol>\n<li><a href=\"http:\/\/download.microsoft.com\/download\/6\/8\/7\/687DEE85-E907-4A95-8035-8BC969B9EA95\/WindowsApplicationDriver.msi\" title=\"Download Windows Application Driver\" target=\"_blank\">Windows Application Driver<\/a>\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30fb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/li>\n<li>NuGet\u304b\u3089\u300c<a href=\"https:\/\/www.nuget.org\/packages\/Appium.WebDriver\/\" title=\"NuGet Gallery | Appium Webdriver 1.5.1.1\" target=\"_blank\">Appium Webdriver<\/a>\u300d\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/li>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">nuget install &quot;Appium.WebDriver&quot;<\/pre>\n<\/ol>\n<h4 class=\"style4a\">\u96fb\u5353\u3092\u64cd\u4f5c\u3059\u308bC#\u30b3\u30fc\u30c9<\/h4>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\/\/appium-dotnet-driver.dll, WebDriver.dll \u8981\u53c2\u7167\r\nusing System;\r\nusing OpenQA.Selenium.Remote;\r\n\r\nnamespace AppiumSample\r\n{\r\n  class Program\r\n  {\r\n    public static void Main(string&#x5B;] args)\r\n    {\r\n      \/\/Windows Application Driver\u5b9f\u884c\r\n      string serverPath = System.IO.Path.Combine(\r\n        System.Environment.GetFolderPath(\r\n          System.Environment.SpecialFolder.ProgramFilesX86\r\n        ), @&quot;Windows Application Driver&quot;, &quot;WinAppDriver.exe&quot;\r\n      );\r\n      System.Diagnostics.Process.Start(serverPath);\r\n      \r\n      \/\/\u96fb\u5353\u64cd\u4f5c\r\n      DesiredCapabilities appCapabilities = new DesiredCapabilities();\r\n      appCapabilities.SetCapability(&quot;app&quot;, &quot;Microsoft.WindowsCalculator_8wekyb3d8bbwe!App&quot;);\r\n      RemoteWebDriver driver = new RemoteWebDriver(new Uri(@&quot;http:\/\/127.0.0.1:4723&quot;), appCapabilities);\r\n      driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(2));\r\n      driver.FindElementByName(&quot;1&quot;).Click();\r\n      driver.FindElementByName(&quot;2&quot;).Click();\r\n      driver.FindElementByName(&quot;3&quot;).Click();\r\n      driver.FindElementByName(&quot;4&quot;).Click();\r\n      driver.FindElementByName(&quot;5&quot;).Click();\r\n      \/\/driver.Dispose();\r\n      \/\/driver = null;\r\n      \r\n      Console.Write(&quot;Press any key to continue . . . &quot;);\r\n      Console.ReadKey(true);\r\n    }\r\n  }\r\n}<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/Windows_Application_Driver_01.gif\" alt=\"Windows_Application_Driver_01\" width=\"343\" height=\"507\" class=\"alignnone size-full wp-image-6880\" \/><\/p>\n<p>\u30b3\u30fc\u30c9\u3092\u898b\u308c\u3070\u5206\u304b\u308b\u901a\u308a\u3001Selenium WebDriver\u3068\u540c\u3058\u3088\u3046\u306a\u66f8\u304d\u65b9\u3067\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30fb\u30fb\u30fb\u304c\u3001Beta\u7248\u3060\u3051\u3042\u3063\u3066\u307e\u3060\u307e\u3060\u52d5\u4f5c\u306f\u4e0d\u5b89\u5b9a\u3002<br \/>\n\u73fe\u6642\u70b9\u3067\u306f\u300c<a href=\"\/\/www.ka-net.org\/blog\/?p=6466\" title=\"C#\u304b\u3089Winium.Cruciatus\u3092\u4f7f\u3063\u3066\u307f\u305f\u3002 | \u521d\u5fc3\u8005\u5099\u5fd8\u9332\" target=\"_blank\">Winium.Cruciatus<\/a>\u300d\u306e\u65b9\u304c\u5b8c\u6210\u5ea6\u306f\u9ad8\u3044\u3088\u3046\u306b\u611f\u3058\u307e\u3059\u3002<\/p>\n<p>\u3068\u306f\u3044\u3048\u3001<span style=\"color: #ff0000; font-weight: bold;\">\u201cMicrosoft\u516c\u5f0f\u201d<\/span>\u3068\u3044\u3046\u4fe1\u983c\u611f\u3001\u305d\u3057\u3066\u4eca\u5f8c\u306e\u4e88\u5b9a\u3068\u3057\u3066\u306f\u30e2\u30d0\u30a4\u30eb\u3084Xbox\u307e\u3067\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u304f\u3089\u3057\u3044\u306e\u3067\u3001\u5171\u901a\u306e\u30b3\u30fc\u30c9\u3067Win32\u30a2\u30d7\u30ea\u304b\u3089UWP\u30a2\u30d7\u30ea\u3001\u679c\u3066\u306fXbox\u30a2\u30d7\u30ea\u307e\u3067\u30c6\u30b9\u30c8\u3067\u304d\u308b\u3068\u306a\u308b\u3068\u3001\u304b\u306a\u308a\u306e\u5f37\u307f\u306b\u306a\u308b\u3060\u308d\u3046\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":"Build 2016\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u300cUI Test Automation for Browsers and Apps Using the WebDriver Standard\u300d\u3067Windows Application Dr [&hellip;]","protected":false},"author":1,"featured_media":9039,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"[Windows Application Driver\u3092\u8a66\u3057\u3066\u307f\u307e\u3057\u305f]","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,154,5],"tags":[],"class_list":["post-6879","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-windows10","category-windows","category-selenium","category-other"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-Selenium.png","jetpack_shortlink":"https:\/\/wp.me\/p4UZZr-1MX","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6879","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=6879"}],"version-history":[{"count":2,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6879\/revisions"}],"predecessor-version":[{"id":9047,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6879\/revisions\/9047"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/9039"}],"wp:attachment":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6879"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6879"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6879"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}