{"id":6463,"date":"2015-12-25T11:52:54","date_gmt":"2015-12-25T02:52:54","guid":{"rendered":"http:\/\/www.ka-net.org\/blog\/?p=6463"},"modified":"2017-08-11T12:55:42","modified_gmt":"2017-08-11T03:55:42","slug":"c%e3%81%8b%e3%82%89winium-webdriver%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%bf%e3%81%9f%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=6463","title":{"rendered":"C#\u304b\u3089Winium WebDriver\u3092\u4f7f\u3063\u3066\u307f\u305f\u3002"},"content":{"rendered":"<p>\u300c<a href=\"http:\/\/www.moongift.jp\/2015\/11\/winium-windows%E5%90%91%E3%81%91%E3%82%BD%E3%83%95%E3%83%88%E3%82%A6%E3%82%A7%E3%82%A2%E3%81%A7%E3%82%82selenium%E3%81%A7%E3%83%86%E3%82%B9%E3%83%88%E3%81%97%E3%82%88%E3%81%86\/\" title=\"Winium - Windows\u5411\u3051\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3067\u3082Selenium\u3067\u30c6\u30b9\u30c8\u3057\u3088\u3046 MOONGIFT\" target=\"_blank\">Winium &#8211; Windows\u5411\u3051\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3067\u3082Selenium\u3067\u30c6\u30b9\u30c8\u3057\u3088\u3046<\/a>\u300d\u8a18\u4e8b\u3067\u7d39\u4ecb\u3055\u308c\u3066\u3044\u308b\u3001Windows\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u81ea\u52d5\u64cd\u4f5c\u3092\u884c\u3046\u305f\u3081\u306e\u30c4\u30fc\u30eb\u304c\u300c<a href=\"https:\/\/github.com\/2gis\/Winium\" title=\"Winium\" target=\"_blank\">Winium<\/a>\u300d\u3067\u3059\u3002<br \/>\n\u540d\u524d\u306e\u901a\u308a\u3001<a href=\"http:\/\/www.seleniumhq.org\/\" title=\"Selenium - Web Browser Automation\" target=\"_blank\">Selenium<\/a>\u304b\u3089\u306e\u6d3e\u751f\u3067\u3059\u306d\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3053\u306e<span style=\"color: #ff0000; font-weight: bold;\">Winium<\/span>\u3092.NET\u304b\u3089\u4f7f\u3063\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h4 class=\"style4a\">\u4e0b\u6e96\u5099<\/h4>\n<p>\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u306fNuGet\u306b\u3042\u308b\u306e\u3067\u3001\u307e\u305a\u306f\u300c<a href=\"https:\/\/www.nuget.org\/packages\/Selenium.WebDriver\/\" title=\"NuGet Gallery | Selenium WebDriver 2.48.2\" target=\"_blank\">Selenium WebDriver<\/a>\u300d\u3068\u300c<a href=\"https:\/\/www.nuget.org\/packages\/Winium.WebDriver\/\" title=\"NuGet Gallery | Winium.WebDriver 0.1.0\" target=\"_blank\">Winium.WebDriver<\/a>\u300d\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">nuget install &quot;Selenium.WebDriver&quot;\r\nnuget install &quot;Winium.WebDriver&quot;<\/pre>\n<p>\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u6e96\u5099\u304c\u3067\u304d\u305f\u3089\u4e0b\u8a18\u30b5\u30a4\u30c8\u304b\u3089WebDriver(Winium.Desktop.Driver.exe)\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u3001\u9069\u5f53\u306a\u30d5\u30a9\u30eb\u30c0\u306b\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n<p><strong>\u30fbWinium.Desktop.Driver<\/strong><br \/>\n<a href=\"https:\/\/github.com\/2gis\/Winium.Desktop\/releases\" title=\"Winium.Desktop.Driver\">https:\/\/github.com\/2gis\/Winium.Desktop\/releases<\/a><\/p>\n<h4 class=\"style4a\">Winium\u3067\u30e1\u30e2\u5e33\u3092\u64cd\u4f5c\u3059\u308b\u30b3\u30fc\u30c9<\/h4>\n<p>\u6e96\u5099\u304c\u3067\u304d\u305f\u3089\u3001\u5b9f\u969b\u306b\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u52d5\u304b\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\/*\r\n * Winium\u3067\u30e1\u30e2\u5e33\u3092\u64cd\u4f5c\u3059\u308b\u30b5\u30f3\u30d7\u30eb\r\n * @kinuasa\r\n * \r\n * &#x5B;\u8981\u53c2\u7167]\r\n * WebDriver(WebDriver.dll),\r\n * Winium.WebDriver(Winium.WebDriver.dll)\r\n *\/\r\nusing OpenQA.Selenium.Winium;\r\n\r\nnamespace Sample02\r\n{\r\n  class Program\r\n  {\r\n    public static void Main(string&#x5B;] args)\r\n    {\r\n      var options = new DesktopOptions();\r\n      options.ApplicationPath = @&quot;C:\\Windows\\System32\\notepad.exe&quot;;\r\n      \/\/Winium.Desktop.Driver.exe\u306e\u5834\u6240\u6307\u5b9a\r\n      WiniumDriver driver = new WiniumDriver(@&quot;C:\\System&quot;, options);\r\n      driver.FindElementByClassName(&quot;Edit&quot;).SendKeys(&quot;Hello World.&quot;);\r\n    }\r\n  }\r\n}<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/Winium_WebDriver_01.gif\" alt=\"Winium_WebDriver_01\" width=\"430\" height=\"330\" class=\"alignnone size-full wp-image-6464\" \/><\/p>\n<p>\u4e0a\u8a18\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u4e0a\u56f3\u306e\u901a\u308a\u3001\u30e1\u30e2\u5e33\u304c\u8d77\u52d5\u3057\u300cHello World.\u300d\u3068\u81ea\u52d5\u7684\u306b\u5165\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n<h4 class=\"style4a\">\u304a\u308f\u308a\u306b<\/h4>\n<p>\u4eca\u56de\u521d\u3081\u3066Winium\u3092\u4f7f\u3063\u3066\u307f\u307e\u3057\u305f\u304c\u3001<\/p>\n<p><span style=\"color: #ff0000; font-weight: bold;\">\u201c\u3068\u308a\u3042\u3048\u305a\u4f7f\u3044\u3065\u3089\u3044\uff01\uff01\u201d<\/span><\/p>\n<p>\u79c1\u306f\u305d\u3046\u611f\u3058\u307e\u3057\u305f\u3002<br \/>\nSelenium\u3068\u540c\u3058\u3088\u3046\u306a\u30b3\u30fc\u30c9\u306e\u66f8\u304d\u65b9\u304c\u3067\u304d\u308b\u306e\u306f\u826f\u3044\u306e\u3067\u3059\u304c\u3001\u8cc7\u6599\u3082\u5c11\u306a\u304f\u3001\u30a8\u30ec\u30e1\u30f3\u30c8\u306e\u6307\u5b9a\u65b9\u6cd5\u3082\u5206\u304b\u308a\u3065\u3089\u304f\u30fb\u30fb\u30fb\u3001\u3053\u308c\u306a\u3089\u3070\u7d20\u76f4\u306bUI Automation\u4f7f\u3063\u305f\u65b9\u304c\u697d\u3067\u306f\u306a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n(\u79c1\u306f\u8a66\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u3059\u304c\u3001UWP\u30a2\u30d7\u30ea\u3084Windows Phone\u5411\u3051\u306e\u30a2\u30d7\u30ea\u3082\u30c6\u30b9\u30c8\u3067\u304d\u308b\u3089\u3057\u3044\u306e\u3067\u3001\u305d\u3061\u3089\u306e\u65b9\u9762\u3067\u4f7f\u7528\u3059\u308c\u3070\u4fbf\u5229\u306a\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002)<\/p>\n<hr \/>\n<p><span style=\"color: #ff0000; font-weight: bold;\">2015\/12\/25 \u8ffd\u8a18\uff1a<\/span><br \/>\nWinium.Cruciatus\u306b\u3064\u3044\u3066\u3082\u8a18\u4e8b\u3092\u66f8\u304d\u307e\u3057\u305f\u3002<\/p>\n<p><strong>\u30fbC#\u304b\u3089Winium.Cruciatus\u3092\u4f7f\u3063\u3066\u307f\u305f\u3002<\/strong><br \/>\n<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\">\/\/www.ka-net.org\/blog\/?p=6466<\/a><\/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":"\u300cWinium &#8211; Windows\u5411\u3051\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3067\u3082Selenium\u3067\u30c6\u30b9\u30c8\u3057\u3088\u3046\u300d\u8a18\u4e8b\u3067\u7d39\u4ecb\u3055\u308c\u3066\u3044\u308b\u3001Windows\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u81ea\u52d5\u64cd\u4f5c\u3092\u884c\u3046\u305f\u3081\u306e\u30c4\u30fc\u30eb\u304c\u300cWinium\u300d\u3067\u3059\u3002 \u540d\u524d\u306e\u901a\u308a\u3001Se [&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":"[C#\u304b\u3089Winium WebDriver\u3092\u4f7f\u3063\u3066\u307f\u305f\u3002]","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":[154],"tags":[],"class_list":["post-6463","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-selenium"],"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-1Gf","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6463","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=6463"}],"version-history":[{"count":5,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6463\/revisions"}],"predecessor-version":[{"id":9043,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6463\/revisions\/9043"}],"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=6463"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6463"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6463"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}