Then use the solution provided by me :)
Jarmo
On Jun 28, 5:55 pm, Ajitesh Srinetra ajitesh.srine...@gmail.com
wrote:
Hi Joe
We have a complex GUI with the ext Frame work
This is having a lot of divs.Now coming to the solution iLastDivIndex
= browser.divs.length with fetch the index of the
Or, you could do it like this which is not so good anyway:
ie.divs.find_all {|div| div.text == div}.last.click
Better add some id, name, class or whatever attributes to the divs to
make it more robust and more readable.
Jarmo
On Jun 28, 11:31 am, Željko Filipin zeljko.fili...@wa-research.ch
Ajitesh,
While I'm not sure why you would click on a div,
but here's one way you could click on the last one:
# Get the total number of the div elements on the page
iLastDivIndex = browser.divs.length
# Click on the last div element
browser.div(:index, iLastDivIndex).click
Joe
On Jun 25,
Hi Joe
We have a complex GUI with the ext Frame work
This is having a lot of divs.Now coming to the solution iLastDivIndex
= browser.divs.length with fetch the index of the last div in the
page
But what I want is the index of the div with text div.
Thanks and Regards
Ajitesh Srinetra
On Mon,