Jump to content

Recommended Posts

Posted

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?

Posted

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?

Posted

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
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
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
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
Posted

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?

  • 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
  • Recently Browsing   0 members

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