Good morning:
I have taxed my two brain cells on how to click this link. Unfortunately
the developers did not include SPAN id or title. I have figured out that
this link is in table 20 Row 10 Column1, but I can not get the link to work
with this syntax.
table = @ie.table(:index, 20).flash
# Table.new(@ie.table(:index, 20)).printPretty
myTable = @ie.table(:index, 20)
test1 = myTable[10][1].click
Using SpySmith the content of this link looks like this.
Active Element: [A], Index: [417]
<A class=universalLink href='javascript:switchSite("_bo_site:13024438");'>
<SPAN class=b>Ingleside</SPAN> </A>
The developers have the href becoming something unique every time I import
my data, so I can not use a regular expression and grab the business object
ID in the href. There are 9 similar links on this page and I need this
specific one.
The only thing that seems unique to me is the Active Element Index. I
tried this syntax to see if I could at least locate the link by that index,
but no such luck.
assert_equal( "test1" , @ie.link(:index, 417).id )
assert_equal( "test2" , @ie.link(:index, 417).name )
How might you approach clicking on this link?
The next thing I am going to try is capture an array of all the links on
the page, then click on the appropriate array index. Seems to me there
should be a more straight forward way and unfortunately this is legacy code
and developers will not fix the HTML. ;O(
Any thoughts would be most appreciated!
Thanks,
Carl
Carl L. Shaulis
Convergys - Senior Analyst
512-634-0607
--
"NOTICE: The information contained in this electronic mail transmission is
intended by Convergys Corporation for the use of the named individual or
entity to which it is directed and may contain information that is
privileged or otherwise confidential. If you have received this electronic
mail transmission in error, please delete it from your system without
copying or forwarding it, and notify the sender of the error by reply email
or by telephone (collect), so that the sender's address records can be
corrected."
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general