Skip to content

hirokundayon/edobarai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Google Chromeを動かすPowerShellスクリプトの動かし方

東平洋史
  1. はじめに
      この資料は Google Chrome を動かすPowerShellスクリプト edobarai.ps1 の動かし方を記述したものです。このPowerShellスクリプトは次の手順で、太宰府で開かれたOSC2011 Fukuokaのレポートを表示させます。
    1. Webブラウザを起動します。
    2. Googleのページを表示します。
    3. 「OSC Fukuoka 太宰府」をキーに検索します。
    4. 「OSC2011 Fukuoka 太宰府にて開催!!」の記事へのリンクをクリックします。
    5. 表示されたLTの写真をクリックします。
    6. 表示されたLTの写真をクリックします。
    7. 10秒待ちます。
    8. 起動したWebブラウザを終了させます。
  2. 準備
    1. Selenium Standalone Serverのダウンロード
         次のURLから必要なファイルを取得します。
      http://www.seleniumhq.org/download/
    • Google Chrome Driver
  3. Google Chrome DriverにPATHを通す。  
  4. PowerShellスクリプトの起動
    以上で準備完了です。PowerShellスクリプトを起動しましょう。
    > .\edobarai.ps1
  5. 参考文献
    1. WebDriver
      Living Document
      W3C Editor's Draft 28 April 2016
      https://w3c.github.io/webdriver/webdriver-spec.html
    2. Invoke-RestMethod
      https://msdn.microsoft.com/powershell/reference/5.1/microsoft.powershell.utility/Invoke-RestMethod
    3. Seleniumの薄っすい話4:俺と非公式バインディング
      http://qiita.com/hiroshitoda/items/5fa5292ceb1e3e8a9610
    4. bashでWebブラウザ(Selenium WebDriver)を動かした話 https://www.slideshare.net/hirofumitouhei/bashwebselenium-webdriver
    5. OSC2011 Fukuoka 太宰府にて開催!!
      https://www.ospn.jp/press/20111219osc2011-fukuoka-report.html
    6. SI-Toolkit for Web Testing ハンズオン勉強会
      https://www.slideshare.net/yuichi_kuwahara/sitoolkit-for-web-testing

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published