Cut my self off to quick. http://w3schools.com/tags/tag_link.asp The <link> tag: must appear in the head not the body of html document Example Link to an external style sheet: <head> <link rel="stylesheet" type="text/css" href="theme.css" /> </head> When used for style sheets, the <link> tag is supported in all major browsers. No real support for anything else.
Why is development abusing the html structure by putting <link> into the body? On Aug 12, 8:34 am, Super Kevy <kpe...@scholarshipamerica.org> wrote: > just what is the element link its not the html element anchor <a > href=...>Stuff</a>. > That would explain it. > <link id="pathSearch" href="/Account/UserSearch"/ > <link id="pathSearchPager" href="/Account/ UserSearch"/> > > Consider element_by_xpath > Try these links for some > info:http://wiki.openqa.org/display/WTR/XPathhttp://angrez.blogspot.com/2006/06/xpath-and-watir.html > > Consider refreshing what makes up html: http://w3schools.com/html/default.asp > > On Aug 11, 3:34 am, Jog <jogwa...@gmail.com> wrote: > > > > > Hi, > > > I am new to Watir and I would like to ask if there is any way in Watir > > to access the elements in a partial view? > > The element does not exist when you look into the page's View Source. > > It does, however, exist when you look into the firebug. > > > Here's my Page Source looks like.. > > <div id="accordionIndex" class="overflowDesactivate usersDivIE6"> > > <div id="UserScreenDiv" class="divUserScreeen " > > style="height:522px;"> > > ---some elements not shown here--- > > </div> > > </div> > > > Here's what in the DOM.. > > <div id="accordionIndex" class="overflowDesactivate usersDivIE6"> > > <div id="UserScreenDiv" class="divUserScreeen " > > style="height:522px;"> > > <link id="pathSearch" href="/Account/UserSearch"/ > > > <link id="pathSearchPager" href="/Account/ > > UserSearch"/> > > ---some parts here--- > > </div> > > </div> > > > Somehow, I want to access the links in the DOM.. > > > by the way here's my WATIR script and it fails.. > > > require 'watir' > > test_site = 'https://www.mysite.com' > > ie = Watir::IE.new > > ie.goto(test_site) > > ie.link(:text, "User Management").click > > if assert(ie.link(:id, "pathSearch").exists?) > > puts 'OK' > > end > > > then i get this message from WATIR.. > > 1) Failure: > > test_user_mgt(TC_TOM_suite) [TOM_test_suite.rb:42]: > > Failed assertion, no message given. > > > it seems that WATIR did not see the links element under div because > > they are part of a partial view.. > > I need advice in this one.. > > > Thank you very much! > > > Best Regards, > > Jog- Hide quoted text - > > - Show quoted text - -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com