metis Posted March 25, 2011 Posted March 25, 2011 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?
GMK Posted March 25, 2011 Posted March 25, 2011 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?
metis Posted March 25, 2011 Author Posted March 25, 2011 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
GMK Posted March 25, 2011 Posted March 25, 2011 (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 March 25, 2011 by GMK
metis Posted March 25, 2011 Author Posted March 25, 2011 (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 March 25, 2011 by metis
GMK Posted March 25, 2011 Posted March 25, 2011 (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 March 25, 2011 by GMK
metis Posted March 26, 2011 Author Posted March 26, 2011 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?
strikeraid Posted April 4, 2011 Posted April 4, 2011 _FFCmd("FFau3.WCD=window.content.top.document;") add that line before each _FFClick
lis16 Posted September 2, 2011 Posted September 2, 2011 Add new function to ff.au3. You must just replace click in whole function _FFClick to dblclick (<- this is java function).
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