Yes it worked. Thank you. On 1 helmi, 19:25, orde <[email protected]> wrote: > Take a look athttp://wiki.openqa.org/display/WTR/Frames > > To click a link in a frame, the syntax is the following: > > browser.frame(:id, "id").link(:id, "id").click > > Hope that helps. > > orde > > On Jan 31, 11:28 pm, Gimle <[email protected]> wrote: > > > To answer both of your questions, I'm posting some related html > > here.. > > > The original page doesn't initially contain the html element i'm > > looking to activate, but they are generated by this remove > > javascript : > > > <script src="https://rpxnow.com/openid/v2/widget" type="text/ > > javascript"></script> > > > This contains a class "RPXNOW" that handles generating the html for > > the overlay where the link ends up. > > > Here's a very partial paste acquired via Firebug (view source doesn't > > really cut it here :)), containing the <iframe> that houses the rpxnow > > login overlay. Most of the tree is truncated, i've left only the > > element I was inspecting open. > > > <iframe id="rpx_auth_1265008478579" frameborder="0" scrolling="no" > > allowtransparency="true" style="background: transparent none repeat > > scroll 0% 0%; width: 373px; height: 265px; -moz-background-clip: -moz- > > initial; -moz-background-origin: -moz-initial; -moz-background-inline- > > policy: -moz-initial; position: absolute; top: 0pt; left: 0pt; > > visibility: visible; display: block; margin-top: 12px;" > > name="rpx_auth_1265008478579" src=""> > > <html dir="ltr"> > > <head> > > </head> > > <body> > > <div id="FB_HiddenContainer" style="position: absolute; top: -10000px; > > left: -10000px; width: 0px; height: 0px;"> > > </div> > > <div id="widget" class="widget"> > > <div id="view"> > > <div> > > <div style="display: none;"> > > </div> > > <div class="prov_box" style="display: block;"> > > <div class="prov_logo"> > > </div> > > <div> > > <div class="content"> > > <h1 style=""> > > Welcome back, > > <span class="user"> > > habbo.testing.1 > > <a class="not_you"> > > <span>not you?</span> > > </a> > > </span> > > </h1> > > <div class="error" style="display: none;"> > > </div> > > </div> > > </div> > > <a class="signin"> > > </a> > > </div> > > </div> > > </div> > > <div id="left" class="" style="top: 36px; display: none;"/> > > <div id="right" class="enabled" style="top: 36px; display: none;"/> > > <div id="footer"> > > </div> > > </div> > > <script type="text/javascript" src="js/auth_widget.js/ > > 34be5edc9a3990f909bfe361b6d1c450.js"> > > </script> > > <script type="text/javascript"> > > </script> > > </body> > > </html> > > </iframe> > > > Above, you can see the span within the link I was trying to acquire. > > > Tryhttp://www.habbo.co.uk/andclick "Sign In or Register with one of > > these services" to see the overlay in action. > > > -Toni > > > On 27 tammi, 09:01, Angrez Singh <[email protected]> wrote: > > > > Can you post the HTML code? Also, is this link is inside the FRAME? > > > > On Tue, Jan 26, 2010 at 6:50 PM, Gimle <[email protected]> > > > wrote: > > > > Hello all. I have a question regarding accessing the elements in > > > > remote-javascript generated content on a page. It would appear that > > > > these created elements are not accessible with firewatir at all. I > > > > tried both tagged elements and xpath, but no matches for elements > > > > within rpxnow's javascript-generated content can be found. > > > > > Example : RPX now's "not you?" link > > > > > ff.link(:class, "not_you").exists? # <-- should return true, but > > > > doesn't > > > > ff.span(:text, "not you?").exists? # <-- also false > > > > ff.link(:xpath, "//a...@class='not_you']/span").exists? # <-- Doesn't > > > > return true > > > > ff.link(:xpath, "//a...@class='not_you']/").exists? # <-- jSSH doesn't > > > > like this formatting on an xpath > > > > > Is this a known problem, or am I just not doing it right? > > > > > I am using Ruby 1.8.6 via Netbeans 6.8, Firewatir 1.6.5 and Firefox > > > > 3.0.17 > > > > > -Toni > > > > > -- > > > > You received this message because you are subscribed to the Google > > > > Groups > > > > "Watir General" group. > > > > To post to this group, send email to [email protected] > > > > Before posting, please read the following guidelines: > > > >http://wiki.openqa.org/display/WTR/Support > > > > To unsubscribe from this group, send email to > > > > [email protected] > > > > For more options, visit this group at > > > >http://groups.google.com/group/watir-general
-- You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to [email protected] Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/watir-general
