Jump to content
Sign in to follow this  
metis

_FFClick not work 2 times

Recommended Posts

metis

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
GMK

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
metis

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
GMK

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
metis

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
GMK

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
metis

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
strikeraid

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

add that line before each _FFClick

Share this post


Link to post
Share on other sites
lis16

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.