molotofc Posted June 29, 2014 Share Posted June 29, 2014 Hi all, I hope somebody can help. I have the following _FFXPath code which Firefox will open a new tab with _FFClick on the first instance of the word 'Open' if it's a web link. _FFXPath("//a[contains(.,'Open')]","",9) _FFClick("FFau3.xpath") I'm using _FFXPath because they are onclick javascript links. What do I need to do so instead of it clicking on the first instance of 'Open' on the webpage, but to click on the last instance of 'Open' instead? If there's no easy way, perhaps knowing the number of occurrences of 'Open' before the last instance would help for a different way of tackling this? Many thanks. 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