ユーザ用ツール

サイト用ツール


selenimu2

Selenium2

昔はこのselenium2が最新だったが、現状はseleniumが最新

リンク

ダウンロード

selenium-server-standalone-2.x.x.jar 

サーバ側の起動

サーバ機とクライアント機は同じでも問題ありません。またプログラムを実行するサーバと同一でも大丈夫です。

java -jar selenium-server-standalone-2.x.x.jar -role hub

クライアント側の起動

java -jar selenium-server-standalone-2.x.x.jar -role webdriver -hub   http://192.168.0.1:4444/grid/register

rubyでの実行

ActiveScriptRuby?では gem install selenium-webdriver ができなかったのでActiveScript?版をアンインストールしてmingw32版を入れる。

ruby(mingw32)を入れる

devkitを入れる

http://rubyinstaller.org/downloads
DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe

devkitを解凍し、解凍したディレクトリに移動し

ruby dk.rb init
ruby dk.rb install
gem install selenium-webdriver

でインストール

Pythonで実行

pythonを入れる。

ActivePython-2.7.2.5-win32-x86.msi

pipのsetuptoolsを入れる

http://pypi.python.org/pypi/setuptools#files
setuptools-0.6c11.win32-py2.7.exe (md5)

pipでseleniumを入れる。

pip install selenium
selenimu2.txt · 最終更新: 2021/03/30 14:33 by nabezo