Read up a tutorial on Xpath. Not very hard On 2 Sep 2011, at 18:52, Litha K wrote:
> Sure, could you shed some light on this pls? - havent used much of > xpath before. > > Thanks, > Kay > > On Sep 2, 6:41 pm, Rahul Sharma <[email protected]> wrote: >> XPATH... Not the best way to do it but can be used in this scenario >> >> Kind Regards, >> >> Rahul Sharma >> Phone: +44 (0) 7800 736851 >> >> On 2 Sep 2011, at 18:35, Litha K <[email protected]> wrote: >> >> >> >> >> >> >> >>> Hello all, >> >>> I have got a test scenario where certain links should appear in a >>> particluar order on the page, i.e. >> >>> 1. Email link appear before Sign Up >>> 2. Sign Up link appear before Sign In >>> 3. Sign In appears as the last link >> >>> The HTML is as below: >> >>> <div id="tools-nav"> >>> <ul> >>> <li id="email"><a href="https://localhost/email/" id="email-link" >>> name="email"><span id="email-text">Email</span></a></li> >>> <li id="signup"><a href="https://localhost/signup" name="signup" >>> id="login-sign-up">Sign Up</a></li> >>> <li id="signin"><a href="https://localhost/signin" name="signin" >>> id="login-sign-in">Sign In</a></li> >>> </ul> >>> </div> >> >>> Please could someone advise how I could do this in watir-webdriver. >> >>> Many thanks, >>> Kay >> >>> -- >>> Before posting, please readhttp://watir.com/support. In short: search >>> before you ask, be nice. >> >>> [email protected] >>> http://groups.google.com/group/watir-general >>> [email protected] > > -- > 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] Regards, Rahul Sharma -- 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]
