X hits on this document

PDF document

Web Application Testing in Ruby - page 21 / 34

105 views

0 shares

0 downloads

0 comments

21 / 34

Introduction to Ruby Introduction to WATIR Testing Web Applications

Overview Working with Web Pages Demo

Scraping Information (checking output)

  • #

    Get the title of the page, or the current URL

ie.title ie.url

  • #

    Get the text content - for the whole page or just an element

ie.text ie.span( how, what ).text

  • #

    Get all the HTML in the body of the page

ie.html

  • #

    Identify all the objects/elements on a page

i e . s h o w _ a l l _ o b j e c t s

  • #

    Return true if ‘text’ is on the page somewhere

ie.text.include?( 'text' )

Paul Carvalho

Web Application Testing in Ruby

Document info
Document views105
Page views105
Page last viewedFri Jan 20 11:52:25 UTC 2017
Pages34
Paragraphs380
Words2437

Comments