LoginSignup
6
2

More than 5 years have passed since last update.

Seleniumを5分で動かしてみる

Last updated at Posted at 2017-07-06

はじめに

この記事は、仕組みとかはおいといて、Seleiumの凄さをとにかく見てみたいという方のために書きました。

わずか5分でブラウザ起動、フォーム入力、ボタン入力の操作を自動で行えるようになります。
(前提条件が揃っている場合です。。)

Selenium初心者はここから勉強していくのもありかなと思います。

参考

こちらの記事を参考にしました。詳しく書いています。
http://www.kaizenprogrammer.com/entry/2016/11/23/143938

github : https://github.com/adebadayo/selenium_quickstart/blob/master/README.md

前提

  • PCがMac
  • BrowserがGoogle Chrome
  • nodeがインストールされている(自分はv7.9.0)

手順

git clone

git clone https://github.com/adebadayo/selenium_quickstart.git
cd selenium_quickstart

クロームドライバー追加

wget https://chromedriver.storage.googleapis.com/2.25/chromedriver_mac64.zip
unzip chromedriver_mac64.zip

node パッケージ追加

npm install

node 実行

node quickstart.js

5分を切ったら教えてください。

6
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
2