ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> ruby-talk
ruby-talk
accessing the element of a span
by Mike Hin other posts by this author
Nov 6 2009 2:43AM messages near this date
Re: Possible to use svn as file system in rails application | Re: accessing the element of a span
I'm trying to test against the class name of a span. I'm iterating
through all spans and basically want to say, "If ie.spans[x]'s value for
class = "SSSBUTTON_CONFIRMLINK" then return the inner text of the span"

print ie.spans[x] returns the following

type:
id:
name:
value:
disabled:     false
class:        SSSBUTTON_CONFIRMLINK
text:         Start a New Search

Anyone know how to accomplish this? I haven't been able to figure out
the command to return the class name of a span. I know ie.spans[x].text
will return the inner text but I don't know the code for any of the
other attributes. i tried using :class also to no avail.

Thanks for any help,
Mike
-- 
Posted via http://www.ruby-forum.com/.
Thread:
Mike Hin
7stud --
Mike Hin
7stud --
jgabrielygalan
Mike Hin

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved