X hits on this document

PDF document

Web Application Testing in Ruby - page 20 / 34

79 views

0 shares

0 downloads

0 comments

20 / 34

Introduction to Ruby Introduction to WATIR Testing Web Applications

Overview Working with Web Pages Demo

Interacting with Elements

  • #

    Enter a few lines into a 'Notes' text field (or text area)

ie.text_field(:name,'Notes').set( "Watir \n Rocks!

")

  • #

    Select a specific value in a drop-down list box

ie.select_list(:id,/Size/).select( 'Medium' )

  • #

    Click the button with the specified value (a.k.a

ie.button(:value,'OK').click

. label)

  • #

    Click the link matching 'text'

ie.link(:text,'Return to Home Page').click

  • #

    Access elements in a "frame" or "iframe"

ie.frame(:name,"Main").text_field(:name,'username').set('Alice')

Paul Carvalho

Web Application Testing in Ruby

Document info
Document views79
Page views79
Page last viewedThu Dec 08 05:01:54 UTC 2016
Pages34
Paragraphs380
Words2437

Comments