Upgrade to Pro — share decks privately, control downloads, hide ads and more …

SelenideとGeb

 SelenideとGeb

JJUG CCC Spring 2016 の懇親会LTの発表スライドを日本語にしたものです。
English version is here: https://speakerdeck.com/poohsunny/selenium-vs-geb

PoohSunny

May 21, 2016
Tweet

More Decks by PoohSunny

Other Decks in Technology

Transcript

  1. @PoohSunny { work: "σΟϕϩούʔ" geb: "very minor contributor" community: [

    "TDDBC", "Agile Samurai Base Camp", "೔ຊSeleniumϢʔβʔίϛϡχςΟ" ] }
  2. Selenide2 public class GoogleTest { @Test public void userCanSearch() {

    GooglePage page = open("http://google.com/", GooglePage.class); SearchResultsPage results = page.searchFor("selenide"); results.getResults().shouldHave(size(10)); results.getResult(0).shouldHave(text("Selenide")); } } 2 https://github.com/selenide-examples/google/blob/master/test/org/selenide/examples/ google/selenidepageobject/GoogleTest.javaΛϕʔεʹҰ෦มߋ
  3. Geb @RunWith(JUnit4) public class GoogleTest extend GebTest { @Test def

    userCanSearch() { to GooglePage searchFor("Geb") at SearchResultsPage assert results.size() == 10 assert results[0].text().contains("Geb") } }