意識を低く保ったまま、定型作業を自動化する話です。 ※どうも言葉足らずで誤解させてしまっているようなので補足を書きました。ご覧ください http://qiita.com/greenspa/items/fff535d2ae5da36e36feRead less
![意識の低い自動化](https://cdn-ak-scissors.b.st-hatena.com/image/square/cd632640922fcc7055a4c5894ef08330ab623bb9/height=288;version=1;width=512/https%3A%2F%2Fcdn.slidesharecdn.com%2Fss_thumbnails%2Facventcal2014fabriclt-141206103534-conversion-gate01-thumbnail.jpg%3Fwidth%3D640%26height%3D640%26fit%3Dbounds)
Geb (pronounced “jeb”) very groovy browser automation… web testing, screen scraping and more Manual 0.9.2 - current 0.9.1 0.9.0 0.7.2 0.7.1 0.7.0 0.6.3 0.6.2 0.6.1 0.6.0 API 0.9.2 - current 0.9.1 0.9.0 0.7.2 0.7.1 0.7.0 0.6.3 0.6.2 0.6.1 0.6.0 Mailing List Issues Code Testing Geb provides integration modules for popular testing frameworks such as Spock, JUnit, TestNG, EasyB and Cucumber (via Cuke4
Luke Daley, Marcin Erdmann, Erik Pragt version 7.0 Very groovy browser automation… web testing, screen scraping and more Geb (pronounced "jeb" and originally a contraction of "Groovy web") is a developer focused tool for automating the interaction between web browsers and web content. It uses the dynamic language features of Groovy to provide a powerful content definition DSL (for modelling conten
GebでヘッドレスなWebDriverというとHtmlUnitが挙げられますが、JavaScriptのサポートが非常に弱かったり、余計なログを出しまくったりと正直かなり残念な感じです。 FirefoxやChromeを使えばよいのですが、PhantomJSをWebDriverとして使えるようにしたGhost Driverを見つけたのでGebから使ってみたいと思います。 PhantomJSのインストール まずPhantomJS本体が必要なので、HomeBrew等からインストールしておきましょう。 1 $ brew install phantomjs 1 2 $ phantomjs --version 1.9.1 必要な依存ライブラリについて 今回はGroovyスクリプトからGebを使います。Grapeで依存ライブラリを指定しましょう。 必要なのはGeb本体(geb-core)とPhantomJ
What is it? Geb is a browser automation solution. It brings together the power of WebDriver, the elegance of jQuery content selection, the robustness of Page Object modelling and the expressiveness of the Groovy language. It can be used for scripting, scraping and general automation — or equally as a functional/web/acceptance testing solution via integration with testing frameworks such as Spock,
(2016年06月 追記 ココカラ) この記事で紹介しているFireFoxを使ったデモは、FireFox 46以降正常に動作しないようです。 この記事紹介時点ではFireFoxさえインストールしてあればGebで操作することが可能でしたがFireFox 46以降では、https://developer.mozilla.org/ja/docs/Mozilla/QA/Marionette こちらのMarionetteをインストールし、FireFoxのドライバーとしてMarionetteWebDriverクラスを設定する必要があります。 これらの環境をそろえて該当のコードを修正すれば、記事のコードの大部分はそのまま使うことができるはずです。 (2016年06月 追記 ココマデ) (2016年08月 追記 ココカラ) 会社のブログでMarionetteを使ってGebを実行する方法を紹介しました。 A
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く