shaheen28 Posted May 8, 2013 Share Posted May 8, 2013 (edited) Hi folks, Trying to get a small help here. I am trying to click on a link inside a webpage in firefox and FFClickLink fails. Hence thinking of using XPath and FFClick. Unfortunately the link is referring a javascript as below and I am not able to obtain the correct Xpath value even with the firebug plugin or I maybe using it incorrectly. <tr> <td class="data1" nowrap="on"> <a class="noline" title="Queue Name : TESTQUEUE" href="javascript:viewQ('SWLIVE|TESTQUEUE|R')">TEST QUEUE</a> </td> <td class="data1" align="right">146</td> </tr> The code that I am trying to use here is as follows (xpath got from mozilla plugin firepath/firebug) $sObj=_FFXpath(".//*[@id='top']/tbody/tr[2]/td[3]/table[6]/tbody/tr/td[1]/table/tbody/tr[7]/td[1]/a","",9) _FFClick($sObj) Thanks, Shaheen Edited May 21, 2013 by shaheen28 Link to comment Share on other sites More sharing options...
shaheen28 Posted May 8, 2013 Author Share Posted May 8, 2013 Hi All, I was able to solve this problem by getting the correct Xpath. But now a new problem has cropped up where the FFClick works only once and is not working for the second click on the same page. Can anyone please help. Thanks, Shaheen Link to comment Share on other sites More sharing options...
shaheen28 Posted May 8, 2013 Author Share Posted May 8, 2013 Problem solved again Issuing the following after one click solved it - not sure if this was a good method though _FFDisConnect() _FFConnect() Thanks, Shaheen Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now