# Newbie working with fluid table

**URL:** <https://www.ruby-forum.com/t/newbie-working-with-fluid-table/131975>\
**Category:** Ruby\
**Created:** [March 14, 2008, 8:30pm UTC](https://www.ruby-forum.com/t/newbie-working-with-fluid-table/131975 "2008-03-14T20:30:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![joep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/87869e/32.png) [@joep](https://www.ruby-forum.com/u/joep)\
**Post date:** [March 14, 2008, 8:30pm UTC](https://www.ruby-forum.com/t/newbie-working-with-fluid-table/131975/1 "2008-03-14T20:30:53Z")

</div>

I’m slowly and excitedly learning to do automated testing via Ruby. I  
have a webpage with details for a specific video file stored. I can  
check the details for correctness, but my problem is that not all the  
details will display every time. This re-numbers the table rows and I  
don’t know how to adapt to this.

For example, this:  
def test\_verifyData  
verify(($ie.table(:index, 4)[1][2].text ==  
‘Movie.mpg’),message=“wrong name”)  
verify(($ie.table(:index, 4)[2][2].text == ‘VID0817’),message=“wrong  
ID”)  
verify(($ie.table(:index, 4)[3][2].text == ‘02/28/08’),message=“wrong  
sent date”)  
verify(($ie.table(:index, 4)[4][2].text == ‘mp2’), message=“wrong  
filetype”)  
end

can become this:  
def test\_verifyData  
verify(($ie.table(:index, 4)[1][2].text ==  
‘Movie.mpg’),message=“wrong name”)  
verify(($ie.table(:index, 4)[2][2].text == ‘VID0817’),message=“wrong  
ID”)  
verify(($ie.table(:index, 4)[3][2].text == ‘mp2’),message=“wrong  
filetype”)  
end

i.e., “date sent” in row 3 isn’t displayed and now file type which was  
row 4 becomes row 3.

thanks!

---

<div class="post-metadata">

**Author:** ![joep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/87869e/32.png) [@joep](https://www.ruby-forum.com/u/joep)\
**Post date:** [March 17, 2008, 4:43pm UTC](https://www.ruby-forum.com/t/newbie-working-with-fluid-table/131975/2 "2008-03-17T16:43:19Z")

</div>

Reposting - hoping to get some helpful ideas.

> > > > > >

I’m slowly and excitedly learning to do automated testing via Ruby. I  
have a webpage with details for a specific video file stored. I can  
check the details for correctness, but my problem is that not all the  
details will display every time. This re-numbers the table rows and I  
don’t know how to adapt to this.

For example, this:  
def test\_verifyData  
verify(($ie.table(:index, 4)[1][2].text ==‘Movie.mpg’),message=“wrong  
name”)  
verify(($ie.table(:index, 4)[2][2].text == ‘VID0817’),message=“wrong  
ID”)  
verify(($ie.table(:index, 4)[3][2].text == ‘02/28/08’),message=“wrong  
sent date”)  
verify(($ie.table(:index, 4)[4][2].text == ‘mp2’), message=“wrong  
filetype”)  
end

can become this:  
def test\_verifyData  
verify(($ie.table(:index, 4)[1][2].text ==‘Movie.mpg’),message=“wrong  
name”)  
verify(($ie.table(:index, 4)[2][2].text == ‘VID0817’),message=“wrong  
ID”)  
verify(($ie.table(:index, 4)[3][2].text == ‘mp2’),message=“wrong  
filetype”)  
end

i.e., “date sent” in row 3 isn’t displayed and now file type which was  
row 4 becomes row 3.

thanks!
