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
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.