Friday 15 August 2014

How do you create a collection of tables for ruby/Watir and Page Objects -


itemprop = "text">

I have a series of dynamic tables.
I want to be able to loop through these tables, using them hash (using the .hashes method) and one. Compare the data in the .mm file. But I think the collection does not get to work.

Here is an attempt (using the dummy page):

  See class page objects in page_Url ("https: // Developers.google.com/chart/interactive / Docs / examples ") Tables (: all_tables ,: class = & gt; 'google-visualization-table-table') Def Verify_page_against (Page_name, dataset) Load data from spin # Yml #hash through all tables ( For every table, is each record read in hash?) Self.all_tables.each do | Table | Table.hashes says '---' and end  

puts Tables Accelerator method, similar to the Elements accuser method. Rather than creating a all_tables method, actually refer to the method all_tab_allements ("_elements" section).

In other words, the table should be:

  self All_ tables_elements.each do | Table | Table.hashes says '---' and  

say that it will not actually make any output for the sample page. The current definition of the table assumes that they are in the main page. However, in this case the table is in an iframe. Let me tell you clearly when IOMES appear in. To get the output, the table should be defined in the in_iframe block:

  in_iframe (: class = & gt; 'framebox'). Frame | Table (: all_tables, class = & gt; 'google-visualization-table-table' ,: frame = & gt; frame) end  

No comments:

Post a Comment