xdp22 Posted February 14, 2011 Share Posted February 14, 2011 Hello, i got problem, i need click on element on site using FF.au3, it's look simple but i got problem, i tried already many things, what works with other items, but for that it don't work, and doesn't click. It's html code where i need to click : <a class="sign_out" href="http://www.kongregate.com/session" id="welcome_box_sign_out" onclick="$('welcome_box_sign_out_indicator').show();$('welcome_box_sign_out').hide();; new Ajax.Request(this.href, {asynchronous:true, evalScripts:true, method:'delete', onComplete:function(request){var newLoc = request.responseJSON.path; if (newLoc != document.location) { document.location = newLoc; } else { document.location.reload(); }}, parameters:'authenticity_token='+encodeURIComponent(active_user.formAuthenticityToken())}); return false;">Sign out</a> I already tried : _FFClick( "welcome_box_sign_out", "id") $result = _FFXPath('//*[@id="welcome_box_sign_out"]',"",9) _FFClick($result) _FFXPath('//*[@id="welcome_box_sign_out"]',"",9) _FFClick("FFau3.xpath") _FFClick('Sign out','tag', 0) _FFClick(_FFXPath('//*[@id="welcome_box_sign_out"]',"",9)) And some more but nothing works :/ I tried FF Page Analyzer too, but it's can't help me with that. Please help Link to comment Share on other sites More sharing options...
Gideon Posted February 15, 2011 Share Posted February 15, 2011 1. Where do you have FF.au3 from? and what's its code? 2. Do you want to click a link? yes, look at _IELinkClickByText in the help file... Many times you need to think like hobby-bob:') Link to comment Share on other sites More sharing options...
xdp22 Posted February 15, 2011 Author Share Posted February 15, 2011 (edited) Man you are blind? it's not code it's example function what i using. And i don't need link click >.< link click doesn't work. Btw. it need be in firefox. Edited February 15, 2011 by xdp22 Link to comment Share on other sites More sharing options...
Stilgar Posted February 15, 2011 Share Posted February 15, 2011 @xdp22: How looks your complete script? Can you show me the output from the console please, too? Stilgar jEdit4AutoIt PlanMaker_UDF Link to comment Share on other sites More sharing options...
Gideon Posted February 16, 2011 Share Posted February 16, 2011 Man you are blind? it's not code it's example function what i using. And i don't need link click >.< link click doesn't work. Btw. it need be in firefox.dude, "It's html code where i need to click :" means you need to click. But if you use firefox, I can't help. If you don't post what the function _FFclick() does, I can't see what it does.That's not blind, that's not getting your code(or example code). Many times you need to think like hobby-bob:') Link to comment Share on other sites More sharing options...
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