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