Just picked up watir and i managed to get stuck already (not a surprise). 
Was wondering if what im trying to do is possible and if so how exactly i 
go about it.

I'm trying to click a button based on the class; the problem is there are 
around 10-15 buttons with the same class (and all the other elements for 
that matter), and i can't do a simple "index" on it because they are 
dynamic and move. The only way i could select the one i want is if i could 
do a search for either page text and/or picture then select the button 
right below that in the source. I hope that made sense.

Here's a little visual of what im trying to accomplish :

Name#1/Picture
Button
Name#2/Picture
Button
Name#3/Picture
*Button** <= The one I'm trying to click*
Name#4/Picture
Button 

Seeing how all the buttons are identical in all aspects, the only 
difference is the name, so how can i chose the button to click based on the 
name that appears above it?

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to