Hi Michael, Thanks for your valuable suggestion. It worked when I gave the relative xpath. I gave the following.
<clickElement xpath="//div/a[@id='Continue']"/>- This identified the Element <clickLink label="Continue" />- This activated the Click I was able to go to the next page. Thanks, Lokesh ________________________________ From: Michael Zwick <[email protected]> To: lokesh <[email protected]>; "[email protected]" <[email protected]> Sent: Wednesday, November 9, 2011 1:48 PM Subject: RE: [Webtest] How to pass through a page having ClickLink Label with JS function in it Hi Lokesh, Well, could you give more details on the WebTest output (in particular for 1. clickElement with XPath), otherwise it will be impossible to give further advice. Also, do not use absolute XPaths (as they will easily be broken and a pain to maintain). Rather use something like “//div/a[@onclick][text()=’CONTINUE’]” in your example. Michael From:lokesh [mailto:[email protected]] Sent: Tuesday, November 08, 2011 5:50 PM To: [email protected]; Michael Zwick Subject: Re: [Webtest] How to pass through a page having ClickLink Label with JS function in it Hi Michael, I tried the following: 1. <clickElement xpath="/html/body/div/div/div[1]/div/div/div/div/div/form/div[2]/fieldset/div[3]/div/div/div/a"/> and 2. <clickElement htmlID="Continue"/> Both did not work. I am not able to continue to the next page. Thanks, Lokesh From:Michael Zwick <[email protected]> To: "[email protected]" <[email protected]>; lokesh <[email protected]> Sent: Tuesday, November 8, 2011 9:34 PM Subject: RE: [Webtest] How to pass through a page having ClickLink Label with JS function in it Have you tried <clickElement …/>? See http://webtest.canoo.com/webtest/manual/clickElement.html Michael From:[email protected] [mailto:[email protected]] On Behalf Of lokesh Sent: Tuesday, November 08, 2011 4:05 PM To: [email protected] Subject: [Webtest] How to pass through a page having ClickLink Label with JS function in it Hi, I am not able to proceed further from the page having following code.I tried : <clickLink label="CONTINUE" /> Code: <div class="sq-red-btn-right"> <a onclick="javascript:nextSubmit("mainForm"); return form_submit("mainForm")" href="#">CONTINUE</a> </div> I tried giving xpath values but it did not work either. Please help me with your valuable suggestions. Thanks, Lokesh

