magnifier512 Posted February 16, 2010 Share Posted February 16, 2010 I am trying to click an image/object but FFXPath can't get hold of it. I tried _FFImageClick and _FFClick via id and name (value for both is "server_de53"). Then I tried to get the element directly which didn't work either:$sObj = _FFXPath("/html/body/div[@id='index_body']/div[@id='main']/div[@id='content']/div/div[2]/div[2]/div/form/div[@id='active_server']/input[@id='server_de53']", "", 9) $sObj = _FFXPath("//input[@id='server_de53']", "", 9)(first try is using the path returned by XPather (FF-addon); second try the manually simplified version)Any suggestions how I can get this to work?<form action="index.php?action=login" method="post" class="server-form"> <input name="user" value="MissTMade" type="hidden"> <div id="active_server" style="overflow: visible; margin-bottom: 5px;"> <input class="server_button" name="server_de53" id="server_de53" src="graphic/index/server_button_dummy.gif" style="background-image: url(button.php?type=world&text=Welt+53);" onmouseover="javascript:hover_toggle_css('server_de53','server_button_hover','server_button');return true;" onmouseout="javascript:hover_toggle_css('server_de53','server_button','server_button_hover');return true;" type="image"> </div> <div id="inactive_server_list" style="overflow: visible; margin-bottom: 1px;"> <input class="server_button" name="server_de29" id="server_de29" src="graphic/index/server_button_dummy.gif" style="background-image: url(button.php?type=world&text=Welt+29&grey);" onmouseover="javascript:hover_toggle_css('server_de29','server_button_hover','server_button');return true;" onmouseout="javascript:hover_toggle_css('server_de29','server_button','server_button_hover');return true;" type="image"> <input class="server_button" name="server_de32" id="server_de32" src="graphic/index/server_button_dummy.gif" style="background-image: url(button.php?type=world&text=Welt+32&grey);" onmouseover="javascript:hover_toggle_css('server_de32','server_button_hover','server_button');return true;" onmouseout="javascript:hover_toggle_css('server_de32','server_button','server_button_hover');return true;" type="image"> <input class="server_button" name="server_de34" id="server_de34" src="graphic/index/server_button_dummy.gif" style="background-image: url(button.php?type=world&text=Welt+34&grey);" onmouseover="javascript:hover_toggle_css('server_de34','server_button_hover','server_button');return true;" onmouseout="javascript:hover_toggle_css('server_de34','server_button','server_button_hover');return true;" type="image"> <input class="server_button" name="server_de35" id="server_de35" src="graphic/index/server_button_dummy.gif" style="background-image: url(button.php?type=world&text=Welt+35&grey);" onmouseover="javascript:hover_toggle_css('server_de35','server_button_hover','server_button');return true;" onmouseout="javascript:hover_toggle_css('server_de35','server_button','server_button_hover');return true;" type="image"> <input class="server_button" name="server_de36" id="server_de36" src="graphic/index/server_button_dummy.gif" style="background-image: url(button.php?type=world&text=Welt+36&grey);" onmouseover="javascript:hover_toggle_css('server_de36','server_button_hover','server_button');return true;" onmouseout="javascript:hover_toggle_css('server_de36','server_button','server_button_hover');return true;" type="image"> <input class="server_button" name="server_de37" id="server_de37" src="graphic/index/server_button_dummy.gif" style="background-image: url(button.php?type=world&text=Welt+37&grey);" onmouseover="javascript:hover_toggle_css('server_de37','server_button_hover','server_button');return true;" onmouseout="javascript:hover_toggle_css('server_de37','server_button','server_button_hover');return true;" type="image"> <input class="server_button" name="server_de38" id="server_de38" src="graphic/index/server_button_dummy.gif" style="background-image: url(button.php?type=world&text=Welt+38&grey);" onmouseover="javascript:hover_toggle_css('server_de38','server_button_hover','server_button');return true;" onmouseout="javascript:hover_toggle_css('server_de38','server_button','server_button_hover');return true;" type="image"> <input class="server_button" name="server_de39" id="server_de39" src="graphic/index/server_button_dummy.gif" style="background-image: url(button.php?type=world&text=Welt+39&grey);" onmouseover="javascript:hover_toggle_css('server_de39','server_button_hover','server_button');return true;" onmouseout="javascript:hover_toggle_css('server_de39','server_button','server_button_hover');return true;" type="image"> <input class="server_button" name="server_de40" id="server_de40" src="graphic/index/server_button_dummy.gif" style="background-image: url(button.php?type=world&text=Welt+40&grey);" onmouseover="javascript:hover_toggle_css('server_de40','server_button_hover','server_button');return true;" onmouseout="javascript:hover_toggle_css('server_de40','server_button','server_button_hover');return true;" type="image"> <input class="server_button" name="server_de41" id="server_de41" src="graphic/index/server_button_dummy.gif" style="background-image: url(button.php?type=world&text=Welt+41&grey);" onmouseover="javascript:hover_toggle_css('server_de41','server_button_hover','server_button');return true;" onmouseout="javascript:hover_toggle_css('server_de41','server_button','server_button_hover');return true;" type="image"> <input class="server_button" name="server_de42" id="server_de42" src="graphic/index/server_button_dummy.gif" style="background-image: url(button.php?type=world&text=Welt+42&grey);" onmouseover="javascript:hover_toggle_css('server_de42','server_button_hover','server_button');return true;" onmouseout="javascript:hover_toggle_css('server_de42','server_button','server_button_hover');return true;" type="image"> <input class="server_button" name="server_de43" id="server_de43" src="graphic/index/server_button_dummy.gif" style="background-image: url(button.php?type=world&text=Welt+43&grey);" onmouseover="javascript:hover_toggle_css('server_de43','server_button_hover','server_button');return true;" onmouseout="javascript:hover_toggle_css('server_de43','server_button','server_button_hover');return true;" type="image"> <input class="server_button" name="server_de44" id="server_de44" src="graphic/index/server_button_dummy.gif" style="background-image: url(button.php?type=world&text=Welt+44&grey);" onmouseover="javascript:hover_toggle_css('server_de44','server_button_hover','server_button');return true;" onmouseout="javascript:hover_toggle_css('server_de44','server_button','server_button_hover');return true;" type="image"> <input class="server_button" name="server_de45" id="server_de45" src="graphic/index/server_button_dummy.gif" style="background-image: url(button.php?type=world&text=Welt+45&grey);" onmouseover="javascript:hover_toggle_css('server_de45','server_button_hover','server_button');return true;" onmouseout="javascript:hover_toggle_css('server_de45','server_button','server_button_hover');return true;" type="image"> <input class="server_button" name="server_de46" id="server_de46" src="graphic/index/server_button_dummy.gif" style="background-image: url(button.php?type=world&text=Welt+46&grey);" onmouseover="javascript:hover_toggle_css('server_de46','server_button_hover','server_button');return true;" onmouseout="javascript:hover_toggle_css('server_de46','server_button','server_button_hover');return true;" type="image"> <input class="server_button" name="server_de47" id="server_de47" src="graphic/index/server_button_dummy.gif" style="background-image: url(button.php?type=world&text=Welt+47&grey);" onmouseover="javascript:hover_toggle_css('server_de47','server_button_hover','server_button');return true;" onmouseout="javascript:hover_toggle_css('server_de47','server_button','server_button_hover');return true;" type="image"> <input class="server_button" name="server_de48" id="server_de48" src="graphic/index/server_button_dummy.gif" style="background-image: url(button.php?type=world&text=Welt+48&grey);" onmouseover="javascript:hover_toggle_css('server_de48','server_button_hover','server_button');return true;" onmouseout="javascript:hover_toggle_css('server_de48','server_button','server_button_hover');return true;" type="image"> <input class="server_button" name="server_de49" id="server_de49" src="graphic/index/server_button_dummy.gif" style="background-image: url(button.php?type=world&text=Welt+49&grey);" onmouseover="javascript:hover_toggle_css('server_de49','server_button_hover','server_button');return true;" onmouseout="javascript:hover_toggle_css('server_de49','server_button','server_button_hover');return true;" type="image"> <input class="server_button" name="server_de50" id="server_de50" src="graphic/index/server_button_dummy.gif" style="background-image: url(button.php?type=world&text=Welt+50&grey);" onmouseover="javascript:hover_toggle_css('server_de50','server_button_hover','server_button');return true;" onmouseout="javascript:hover_toggle_css('server_de50','server_button','server_button_hover');return true;" type="image"> <input class="server_button" name="server_de51" id="server_de51" src="graphic/index/server_button_dummy.gif" style="background-image: url(button.php?type=world&text=Welt+51&grey);" onmouseover="javascript:hover_toggle_css('server_de51','server_button_hover','server_button');return true;" onmouseout="javascript:hover_toggle_css('server_de51','server_button','server_button_hover');return true;" type="image"> <input class="server_button" name="server_de52" id="server_de52" src="graphic/index/server_button_dummy.gif" style="background-image: url(button.php?type=world&text=Welt+52&grey);" onmouseover="javascript:hover_toggle_css('server_de52','server_button_hover','server_button');return true;" onmouseout="javascript:hover_toggle_css('server_de52','server_button','server_button_hover');return true;" type="image"> <input class="server_button" name="server_de54" id="server_de54" src="graphic/index/server_button_dummy.gif" style="background-image: url(button.php?type=world&text=Welt+54&grey);" onmouseover="javascript:hover_toggle_css('server_de54','server_button_hover','server_button');return true;" onmouseout="javascript:hover_toggle_css('server_de54','server_button','server_button_hover');return true;" type="image"> <input class="server_button" name="server_des1" id="server_des1" src="graphic/index/server_button_dummy.gif" style="background-image: url(button.php?type=world&text=SDS&grey);" onmouseover="javascript:hover_toggle_css('server_des1','server_button_hover','server_button');return true;" onmouseout="javascript:hover_toggle_css('server_des1','server_button','server_button_hover');return true;" type="image"> <input class="server_button" name="server_des2" id="server_des2" src="graphic/index/server_button_dummy.gif" style="background-image: url(button.php?type=world&text=SDS+2&grey);" onmouseover="javascript:hover_toggle_css('server_des2','server_button_hover','server_button');return true;" onmouseout="javascript:hover_toggle_css('server_des2','server_button','server_button_hover');return true;" type="image"> </div> </form> Link to comment Share on other sites More sharing options...
Stilgar Posted February 16, 2010 Share Posted February 16, 2010 Booth seems to work with your HMTL-code: #include <FF.au3> _FFConnect() _FFClick( _FFXpath("//input[@id='server_de53']", "",9) ) _FFAction("back") _FFClick("server_de53", "id") but you can try the latest version of the FF.au3, because there was an error with _FFOpenURL that causes some other errors. jEdit4AutoIt PlanMaker_UDF Link to comment Share on other sites More sharing options...
magnifier512 Posted February 17, 2010 Author Share Posted February 17, 2010 Thx. With your new FF.au3 it is working like it should. 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