Re: [wtr-general] Elements property

2013-10-02 Thread Luis Espla
It works very well Thanks a lot On 2 October 2013 19:24, Dan wrote: > li_number = @browser.div(:id => "cabMenu").ul.lis.length > > > On Wednesday, October 2, 2013 10:10:06 AM UTC-4, LuisE wrote: > >> And how do I ask only for how many li's there are? >> >> >> On 2 October 2013 12:54, Oscar Rie

Re: [wtr-general] Elements property

2013-10-02 Thread Dan
li_number = @browser.div(:id => "cabMenu").ul.lis.length On Wednesday, October 2, 2013 10:10:06 AM UTC-4, LuisE wrote: > > And how do I ask only for how many li's there are? > > > On 2 October 2013 12:54, Oscar Rieken >wrote: > >> you are asking for elements inside of the ul, which i guess if you

Re: [wtr-general] Elements property

2013-10-02 Thread Luis Espla
And how do I ask only for how many li's there are? On 2 October 2013 12:54, Oscar Rieken wrote: > you are asking for elements inside of the ul, which i guess if you counted > every valid type of element inside of the ul tag its 15 why dont you ask > for how many li's are inside of the ul? > >

[wtr-general] Re: Unable To Click Button In IE -9 Browser

2013-10-02 Thread Dan
Please see here . On Tuesday, October 1, 2013 10:03:56 AM UTC-4, faro...@gmail.com wrote: > > let me begin with my system requirements > > OS=win7 > > browser=IE 9 > > I am working on sample gmail(gmail login page ) ap

[wtr-general] Re: Using watir, how can I read the values from a dropdown list and create an array?

2013-10-02 Thread Super Kevy
Maybe somthing like this http://stackoverflow.com/questions/7245702/watir-webdriver-counting-number-of-items-in-a-ul-list MyList = browser.ul(:id => "rcbList") MyList.lis.each do |li| puts li.text MyArray << li.text #etcend On Monday, September 30, 2013 7:46:06 AM UTC-5, sp22 wrote: > >

Re: [wtr-general] Elements property

2013-10-02 Thread Oscar Rieken
you are asking for elements inside of the ul, which i guess if you counted every valid type of element inside of the ul tag its 15 why dont you ask for how many li's are inside of the ul? On Wed, Oct 2, 2013 at 5:35 AM, Luis Espla wrote: > Hello, I have the html source code: > > > >class

[wtr-general] Elements property

2013-10-02 Thread Luis Espla
Hello, I have the html source code: Live Video Recorded Video Photos Maintenance Configuration I want to find how many "li tag" there are, I did: li_number = @browser.div(:id => "cabMenu").ul.elements.length But it return 15 also fields there are within the l