Sign in to follow this  
Followers 0
metis

_FFClick not work 2 times

9 posts in this topic

Me code :

$one = _FFXpath("/html/body/div/div/form/a", "", 9)
_FFClick($one)
Sleep(1000)
$two = _FFXpath("/html/body/div/div[2]/div/a[2]/span[2]", "text", 9)
_FFClick($two)

Me program not click two command (_FFClick)

what to do that work?

Share this post


Link to post
Share on other sites



What does $two return? Perhaps it's an error in _FFXpath.

Me code :

$one = _FFXpath("/html/body/div/div/form/a", "", 9)
_FFClick($one)
Sleep(1000)
$two = _FFXpath("/html/body/div/div[2]/div/a[2]/span[2]", "text", 9)
_FFClick($two)

Me program not click two command (_FFClick)

what to do that work?

Share this post


Link to post
Share on other sites

I did it like this:

$one = _FFXPath("//table[@id='ctl00_CT_LastSeen_ChomikList']/tbody/tr/td/div/a", "", 9)
         _FFCLICK($one)
  Sleep (2000)
_FFClick("sendB", "class")

and does not work.

_FFPath certainly is good because after work I _FFOpenUrl

Two _FFClick
-work after _FFOpenURL
-not work after _FFClick

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Have you tried _FFLinksGetAll()? It returns all kinds of information about links including href, hash, search, name, id, text, innerHTML, target, protocol and port. I've used the innerHTML property of links by looping through an array, doing a StringInStr or StringRegExp, then using _FFOpenURL, instead of clicking on the links.

Edited by GMK

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

You can help me on this?

Now my piercing now i have the code are:

work :

_FFClick(_FFXPath("//table[@id='listen']/tbody/tr/td/div/a", "", 9))

 $sHref = _FFCmd(".location.href")
_FFOpenURL ($href)

_FFClick("sendB", "class")

I do not want to entered on page 2 times

not work :

_FFClick(_FFXPath("//table[@id='listen']/tbody/tr/td/div/a", "", 9))
_FFClick("sendB", "class")

Give you HTML code in PW ?

Edited by metis

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

I'm sorry, but I'm not following what you're trying to do. Perhaps some simple HTML code and a better explanation of what you're trying to accomplish would help.

You can help me on this?

Now my piercing now i have the code are:

work :

_FFClick(_FFXPath("//table[@id='listen']/tbody/tr/td/div/a", "", 9))

 $sHref = _FFCmd(".location.href")
_FFOpenURL ($href)

_FFClick("sendB", "class")

I do not want to entered on page 2 times

not work :

_FFClick(_FFXPath("//table[@id='listen']/tbody/tr/td/div/a", "", 9))
_FFClick("sendB", "class")

Give you HTML code in PW ?

Edited by GMK

Share this post


Link to post
Share on other sites

But for what ?

work - for $ sHref = _FFCmd ( ". location.href" )_FFOpenURL ( $ href )

not work - for ONE_FFClick

As if FFClcik could operate only once on the website where it is located.

This may be the fault of Firefox or MozRepl?

Share this post


Link to post
Share on other sites

_FFCmd("FFau3.WCD=window.content.top.document;")

add that line before each _FFClick

Share this post


Link to post
Share on other sites

Add new function to ff.au3. You must just replace click in whole function _FFClick to dblclick (<- this is java function).

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  
Followers 0