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

PHP + Capybara を試してみた / PHP with Capybara

PHP + Capybara を試してみた / PHP with Capybara

Yoshiaki Yoshida

April 07, 2016
Tweet

More Decks by Yoshiaki Yoshida

Other Decks in Technology

Transcript

  1. • @kakakakakku • Yoshiaki Yoshida • CyberAgent Crowd Funding, Inc.

    • Makuake • DevOps, Ruby, Certified Scrum Master • http://kakakakakku.hatenablog.com/ • https://github.com/kakakakakku
  2. ϝϯςφϒϧ 㾎 ڞ௨ॲཧ͸Ͱ͖Δ͚ͩϚΫϩԽ 㾎 91BUIͷॏෳ͸XJUIJOͰ%3:ʹ feature 'xxx' do scenario 'yyy'

    do within(:xpath, '//*[@id="zzz"]') do expect(find(:xpath, './/div[1]')).to have_content 'value_1' expect(find(:xpath, './/div[2]')).to have_content 'value_2' expect(find(:xpath, './/div[3]')).to have_content 'value_3' end end end
  3. ࠔͬͨ͜ͱ 㾎 ࠷৽1IBOUPN+4ͩͱBUUBDI@pMFͰΤϥʔ 㾎 $BQZCBSB1PMUFSHFJTU0CTPMFUF/PEF 㾎 1IBOUPN+4Ͱਖ਼ৗʹಈ࡞ͨ͠ 㾎 1IBOUPN+4Ϗϧυ஗͗͢ ----------------------------------------

    WARNING ---------------------------------------- Building PhantomJS from source takes a very long time, anywhere from 30 minutes to several hours (depending on the machine configuration). We recommend you use the premade binary packages on supported operating systems.