Jump to content

_FFClick not work 2 times


 Share

Recommended Posts

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?

Link to comment
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?

Link to comment
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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
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?

Link to comment
Share on other sites

  • 2 weeks later...
  • 4 months later...

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...