Jump to content

_FFXPath not finding element


Recommended Posts

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&amp;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&amp;text=Welt+29&amp;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&amp;text=Welt+32&amp;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&amp;text=Welt+34&amp;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&amp;text=Welt+35&amp;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&amp;text=Welt+36&amp;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&amp;text=Welt+37&amp;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&amp;text=Welt+38&amp;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&amp;text=Welt+39&amp;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&amp;text=Welt+40&amp;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&amp;text=Welt+41&amp;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&amp;text=Welt+42&amp;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&amp;text=Welt+43&amp;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&amp;text=Welt+44&amp;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&amp;text=Welt+45&amp;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&amp;text=Welt+46&amp;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&amp;text=Welt+47&amp;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&amp;text=Welt+48&amp;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&amp;text=Welt+49&amp;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&amp;text=Welt+50&amp;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&amp;text=Welt+51&amp;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&amp;text=Welt+52&amp;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&amp;text=Welt+54&amp;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&amp;text=SDS&amp;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&amp;text=SDS+2&amp;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

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