Submit Search
Upload
Capybara
•
7 likes
•
1,926 views
Flavian Missi
Follow
Presentation about Integration Tests using Capybara, Selenium and Rails.
Read less
Read more
Technology
Slideshow view
Report
Share
Slideshow view
Report
Share
1 of 21
Download now
Download to read offline
Recommended
Functional testing with capybara
Functional testing with capybara
koffeinfrei
Embracing Capybara
Embracing Capybara
Tim Moore
Cheap frontend tricks
Cheap frontend tricks
ambiescent
18. images in symfony 4
18. images in symfony 4
Razvan Raducanu, PhD
Desymfony 2011 - Habemus Bundles
Desymfony 2011 - Habemus Bundles
Albert Jessurum
Image Manipulation in WordPress 3.5 - WordCamp Phoenix 2013
Image Manipulation in WordPress 3.5 - WordCamp Phoenix 2013
GetSource
All About Sammy
All About Sammy
Scott Becker
Evrone.ru / BEM for RoR
Evrone.ru / BEM for RoR
Dmitry KODer
Recommended
Functional testing with capybara
Functional testing with capybara
koffeinfrei
Embracing Capybara
Embracing Capybara
Tim Moore
Cheap frontend tricks
Cheap frontend tricks
ambiescent
18. images in symfony 4
18. images in symfony 4
Razvan Raducanu, PhD
Desymfony 2011 - Habemus Bundles
Desymfony 2011 - Habemus Bundles
Albert Jessurum
Image Manipulation in WordPress 3.5 - WordCamp Phoenix 2013
Image Manipulation in WordPress 3.5 - WordCamp Phoenix 2013
GetSource
All About Sammy
All About Sammy
Scott Becker
Evrone.ru / BEM for RoR
Evrone.ru / BEM for RoR
Dmitry KODer
Mojolicious on Steroids
Mojolicious on Steroids
Tudor Constantin
Caret Introduction
Caret Introduction
J B
A Brief Introduction to JQuery Mobile
A Brief Introduction to JQuery Mobile
Dan Pickett
jQuery in 15 minutes
jQuery in 15 minutes
Simon Willison
Auto tools
Auto tools
祺 周
Intro to jquery
Intro to jquery
Dan Pickett
Drupal 7 module development
Drupal 7 module development
Adam Kalsey
7 reasons why developers should love Joomla!
7 reasons why developers should love Joomla!
Bartłomiej Krztuk
Mojolicious: what works and what doesn't
Mojolicious: what works and what doesn't
Cosimo Streppone
Mojolicious
Mojolicious
Lenz Gschwendtner
Borrador del blog
Borrador del blog
Sena Cedagro
Mojolicious - Perl Framework for the Real-Time Web (Lightning Talk)
Mojolicious - Perl Framework for the Real-Time Web (Lightning Talk)
Dotan Dimet
Mojolicious, real-time web framework
Mojolicious, real-time web framework
taggg
5.hello popescu2
5.hello popescu2
Razvan Raducanu, PhD
You're Doing it Wrong - WordCamp Orlando
You're Doing it Wrong - WordCamp Orlando
Chris Scott
Image manipulation in WordPress 3.5
Image manipulation in WordPress 3.5
Marko Heijnen
Introduction to jQuery - Barcamp London 9
Introduction to jQuery - Barcamp London 9
Jack Franklin
11. move in Symfony 4
11. move in Symfony 4
Razvan Raducanu, PhD
Joomla! Frappe - Κατασκευή εφαρμογών για το Joomla! χωρίς να τραβάτε τα μαλιά...
Joomla! Frappe - Κατασκευή εφαρμογών για το Joomla! χωρίς να τραβάτε τα μαλιά...
Nicholas Dionysopoulos
Valse overlijdensberichten FTF'ers om veiligheidsdiensten te misleiden
Valse overlijdensberichten FTF'ers om veiligheidsdiensten te misleiden
Thierry Debels
Quick ref capybara
Quick ref capybara
fatec
Quick ref capybara
Quick ref capybara
fatec
More Related Content
What's hot
Mojolicious on Steroids
Mojolicious on Steroids
Tudor Constantin
Caret Introduction
Caret Introduction
J B
A Brief Introduction to JQuery Mobile
A Brief Introduction to JQuery Mobile
Dan Pickett
jQuery in 15 minutes
jQuery in 15 minutes
Simon Willison
Auto tools
Auto tools
祺 周
Intro to jquery
Intro to jquery
Dan Pickett
Drupal 7 module development
Drupal 7 module development
Adam Kalsey
7 reasons why developers should love Joomla!
7 reasons why developers should love Joomla!
Bartłomiej Krztuk
Mojolicious: what works and what doesn't
Mojolicious: what works and what doesn't
Cosimo Streppone
Mojolicious
Mojolicious
Lenz Gschwendtner
Borrador del blog
Borrador del blog
Sena Cedagro
Mojolicious - Perl Framework for the Real-Time Web (Lightning Talk)
Mojolicious - Perl Framework for the Real-Time Web (Lightning Talk)
Dotan Dimet
Mojolicious, real-time web framework
Mojolicious, real-time web framework
taggg
5.hello popescu2
5.hello popescu2
Razvan Raducanu, PhD
You're Doing it Wrong - WordCamp Orlando
You're Doing it Wrong - WordCamp Orlando
Chris Scott
Image manipulation in WordPress 3.5
Image manipulation in WordPress 3.5
Marko Heijnen
Introduction to jQuery - Barcamp London 9
Introduction to jQuery - Barcamp London 9
Jack Franklin
11. move in Symfony 4
11. move in Symfony 4
Razvan Raducanu, PhD
Joomla! Frappe - Κατασκευή εφαρμογών για το Joomla! χωρίς να τραβάτε τα μαλιά...
Joomla! Frappe - Κατασκευή εφαρμογών για το Joomla! χωρίς να τραβάτε τα μαλιά...
Nicholas Dionysopoulos
Valse overlijdensberichten FTF'ers om veiligheidsdiensten te misleiden
Valse overlijdensberichten FTF'ers om veiligheidsdiensten te misleiden
Thierry Debels
What's hot
(20)
Mojolicious on Steroids
Mojolicious on Steroids
Caret Introduction
Caret Introduction
A Brief Introduction to JQuery Mobile
A Brief Introduction to JQuery Mobile
jQuery in 15 minutes
jQuery in 15 minutes
Auto tools
Auto tools
Intro to jquery
Intro to jquery
Drupal 7 module development
Drupal 7 module development
7 reasons why developers should love Joomla!
7 reasons why developers should love Joomla!
Mojolicious: what works and what doesn't
Mojolicious: what works and what doesn't
Mojolicious
Mojolicious
Borrador del blog
Borrador del blog
Mojolicious - Perl Framework for the Real-Time Web (Lightning Talk)
Mojolicious - Perl Framework for the Real-Time Web (Lightning Talk)
Mojolicious, real-time web framework
Mojolicious, real-time web framework
5.hello popescu2
5.hello popescu2
You're Doing it Wrong - WordCamp Orlando
You're Doing it Wrong - WordCamp Orlando
Image manipulation in WordPress 3.5
Image manipulation in WordPress 3.5
Introduction to jQuery - Barcamp London 9
Introduction to jQuery - Barcamp London 9
11. move in Symfony 4
11. move in Symfony 4
Joomla! Frappe - Κατασκευή εφαρμογών για το Joomla! χωρίς να τραβάτε τα μαλιά...
Joomla! Frappe - Κατασκευή εφαρμογών για το Joomla! χωρίς να τραβάτε τα μαλιά...
Valse overlijdensberichten FTF'ers om veiligheidsdiensten te misleiden
Valse overlijdensberichten FTF'ers om veiligheidsdiensten te misleiden
Similar to Capybara
Quick ref capybara
Quick ref capybara
fatec
Quick ref capybara
Quick ref capybara
fatec
d.mix: Programming by a Sample
d.mix: Programming by a Sample
Leslie W
WIT lab programs.docx
WIT lab programs.docx
jashmithakakavakam
JavaScript DOM - Dynamic interactive Code
JavaScript DOM - Dynamic interactive Code
Laurence Svekis ✔
Crowdsourcing with Django
Crowdsourcing with Django
Simon Willison
Jarv.us Showcase — SenchaCon 2011
Jarv.us Showcase — SenchaCon 2011
Chris Alfano
#NewMeetup Performance
#NewMeetup Performance
Justin Cataldo
Building Potent WordPress Websites
Building Potent WordPress Websites
Kyle Cearley
Python Code Camp for Professionals 1/4
Python Code Camp for Professionals 1/4
DEVCON
QConSP 2015 - Dicas de Performance para Aplicações Web
QConSP 2015 - Dicas de Performance para Aplicações Web
Fabio Akita
HTML5 New and Improved
HTML5 New and Improved
Timothy Fisher
Keeping the frontend under control with Symfony and Webpack
Keeping the frontend under control with Symfony and Webpack
Ignacio Martín
前端MVC 豆瓣说
前端MVC 豆瓣说
Ting Lv
Frameworkless Web Development in Clojure
Frameworkless Web Development in Clojure
Kungi2342
PhpBB meets Symfony2
PhpBB meets Symfony2
Fabien Potencier
Jquery Complete Presentation along with Javascript Basics
Jquery Complete Presentation along with Javascript Basics
EPAM Systems
RubyBarCamp “Полезные gems и plugins”
RubyBarCamp “Полезные gems и plugins”
apostlion
Kick start with j query
Kick start with j query
Md. Ziaul Haq
A Short Introduction To jQuery
A Short Introduction To jQuery
Sudar Muthu
Similar to Capybara
(20)
Quick ref capybara
Quick ref capybara
Quick ref capybara
Quick ref capybara
d.mix: Programming by a Sample
d.mix: Programming by a Sample
WIT lab programs.docx
WIT lab programs.docx
JavaScript DOM - Dynamic interactive Code
JavaScript DOM - Dynamic interactive Code
Crowdsourcing with Django
Crowdsourcing with Django
Jarv.us Showcase — SenchaCon 2011
Jarv.us Showcase — SenchaCon 2011
#NewMeetup Performance
#NewMeetup Performance
Building Potent WordPress Websites
Building Potent WordPress Websites
Python Code Camp for Professionals 1/4
Python Code Camp for Professionals 1/4
QConSP 2015 - Dicas de Performance para Aplicações Web
QConSP 2015 - Dicas de Performance para Aplicações Web
HTML5 New and Improved
HTML5 New and Improved
Keeping the frontend under control with Symfony and Webpack
Keeping the frontend under control with Symfony and Webpack
前端MVC 豆瓣说
前端MVC 豆瓣说
Frameworkless Web Development in Clojure
Frameworkless Web Development in Clojure
PhpBB meets Symfony2
PhpBB meets Symfony2
Jquery Complete Presentation along with Javascript Basics
Jquery Complete Presentation along with Javascript Basics
RubyBarCamp “Полезные gems и plugins”
RubyBarCamp “Полезные gems и plugins”
Kick start with j query
Kick start with j query
A Short Introduction To jQuery
A Short Introduction To jQuery
More from Flavian Missi
Tdd with-python-and-django
Tdd with-python-and-django
Flavian Missi
Profiling em Python
Profiling em Python
Flavian Missi
Tsuru - plataforma de cloud computing open source
Tsuru - plataforma de cloud computing open source
Flavian Missi
Django class based-views
Django class based-views
Flavian Missi
Rails::Engine
Rails::Engine
Flavian Missi
Modularizing Rails Apps with Cells
Modularizing Rails Apps with Cells
Flavian Missi
More from Flavian Missi
(6)
Tdd with-python-and-django
Tdd with-python-and-django
Profiling em Python
Profiling em Python
Tsuru - plataforma de cloud computing open source
Tsuru - plataforma de cloud computing open source
Django class based-views
Django class based-views
Rails::Engine
Rails::Engine
Modularizing Rails Apps with Cells
Modularizing Rails Apps with Cells
Recently uploaded
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
Curtis Poe
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
Fwdays
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
Scott Keck-Warren
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
Dilum Bandara
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
Slibray Presentation
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
Addepto
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
Pixlogix Infotech
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
BookNet Canada
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
Alan Dix
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
Kalema Edgar
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
Sergiu Bodiu
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
Mattias Andersson
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
Lorenzo Miniero
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
Stephanie Beckett
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
Mark Billinghurst
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
gvaughan
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
Dubai Multi Commodity Centre
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
RankYa
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
Fwdays
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
hariprasad279825
Recently uploaded
(20)
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
Capybara
1.
Capybara Almir M3nd3s
Flávia Missi @m3nd3s @flaviamissi almirmendes.com flaviamissi.com.br
2.
Unit tests Functional test
3.
User + Browser
4.
Integration tests
5.
6.
http://www.flickr.com/photos/kalebdf/3172638676/
Ué... não aconteceu nada! Capybara simulates how a real user would interact with a web application
7.
Sinatra
8.
Selenium HQ
9.
gem install capybara
10.
spec_helper.rb require 'capybara/rails'
require 'capybara/rspec'
11.
Capybara.default_driver = :selenium Capybara.register_driver
:selenium do |app| Capybara::Driver::Selenium.new( app, :browser => :chrome) end
12.
visit('/projects') visit(post_comments_path(post))
current_path
13.
Simulating click
14.
click_link('id-of-link')
click_link('Link Text') click_button('Save') click_on('Link Text') click_on('Button Value')
15.
Filling html forms
16.
fill_in('First Name', :with
=> 'John') choose('A Radio Button') check('A Checkbox') uncheck('A Checkbox') attach_file('Image', '/path/to/image.jpg') select('Option', :from => 'Select Box')
17.
within("li#employee") do fill_in
'Name', :with => 'Jimmy' end within(:xpath, "//li[@id='employee']") do fill_in 'Name', :with => 'Jimmy' end
18.
Querying page.has_selector?('table tr') page.has_selector?(:xpath, '//table/tr') page.has_no_selector?(:content) page.has_xpath?('//table/tr') page.has_css?('table
tr.foo') page.has_content?('foo')
19.
RSpec Querying page.should have_selector('table
tr') page.should have_selector(:xpath, '//table/tr') page.should have_no_selector(:content) page.should have_xpath('//table/tr') page.should have_css('table tr.foo') page.should have_content('foo') page.should have_no_content('foo')
20.
Valeu!
É nozes!
21.
Links http://rubydoc.info/github/jnicklas/capybara/master/file/README.rdoc https://github.com/jnicklas/capybara
Download now