Jump to content
Sign in to follow this  
shaheen28

XPath FF.au3

Recommended Posts

shaheen28

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 by shaheen28

Share this post


Link to post
Share on other sites
shaheen28

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

Share this post


Link to post
Share on other sites
shaheen28

Problem solved again :)

Issuing the following after one click solved it - not sure if this was a good method though

_FFDisConnect()

_FFConnect()

Thanks,

Shaheen

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×