Jump to content

need some help with _FFFormOptionselect


Go to solution Solved by Danp2,

Recommended Posts

I want to sellect "name2" in a list 

<select id="owned_user_list" class="owned_user_list" url="/account/switch">

    <option value="@name1"></option>
    <option selected="selected" value="@name2"></option>
    <option value="Add_new"></option>

</select>

this is what I tried:

_FFFormOptionselect("owned_user_list","value","@name2")
Link to comment
Share on other sites

Looks like you are missing the 2nd parameter and have the 3rd and 4th reversed. Try:

_FFFormOptionselect("owned_user_list", "id", "@name2", "value")

If that doesn't work, you'll need to provide more details. ;-)

I cant find more information  this is the only info that i got..

why i try to run your code:

__FFStartProcess: ""C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -new-window "http://website.com/dashboard"  "-repl 4242 "
_FFConnect: OS: WIN_81 WIN32_NT 9600 
_FFConnect: AutoIt: 3.3.10.2
_FFConnect: FF.au3: 0.6.0.1b-10
_FFConnect: IP: 127.0.0.1
_FFConnect: Port:   4242
_FFConnect: Delay:  2ms
_FFConnect: Socket:     828
_FFConnect: Browser:    Mozilla/5.0 (Windows NT 6.3; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
__FFSendJavaScripts: Sending functions to FireFox .......... done
_FFLoadWait: . loaded in 11ms
[object XrayWrapper [object HTMLDocument]] - {location: {...}, getElementsByName: function() {...}, getItems: function() {...}, open: function() {...}, close: function() {...}, write: function() {...}, writeln: function() {...}, ...}

What should I do?

Link to comment
Share on other sites

What should I do?

Provide enough details so that we can help you. :ermm:

What website are you attempting to automate? Have you checked to see if there are more than one form on the page?

Post some sample code that demonstrates the issue. It needs to be functional, meaning that anyone else can run it and observe the results.

Link to comment
Share on other sites

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">
  <head profile="http://gmpg.org/xfn/11">
    <script>
  var _errs=["50db73951bf079f60b00019b"];(function(a,b){a.onerror=function(){_errs.push(arguments)};
    var d=function(){var a=b.createElement("script"),c=b.getElementsByTagName("script")[0];
      a.src="//d15qhc0lu1ghnk.cloudfront.net/beacon.js";a.async=!0;
      c.parentNode.insertBefore(a,c)};a.addEventListener?a.addEventListener("load",d,!1):
      a.attachEvent("onload",d)})(window,document);

  _errs.meta = {};
  _errs.meta.isAuthenticated = true;
</script>        <script type="text/javascript">
  var _kmq = _kmq || [];
  var _kmk = _kmk || 'f24aab1869054e4310e3f4ff44e95beeb731ea41';
  function _kms(u){
    setTimeout(function(){
      var d = document, f = d.getElementsByTagName('script')[0],
      s = d.createElement('script');
      s.type = 'text/javascript'; s.async = true; s.src = u;
      f.parentNode.insertBefore(s, f);
    }, 1);
  }
  _kms('//i.kissmetrics.com/i.js');
  _kms('//doug1izaerwt3.cloudfront.net/' + _kmk + '.1.js');
</script>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Style-Type" content="text/css" />
    <meta http-equiv="Content-Script-Type" content="text/javascript" />
    <meta http-equiv="X-Ua-Compatible" content="IE=8" /> 
    <meta name="title" content="Tweepi :: manage your Twitter account" />
<meta name="description" content="Tweepi Twitter Follow Management Utility is a set of Twitter tools to add, follow and unfollow tweeps in bulk" />
<meta name="keywords" content="twitter tools, how to twitter followers, twitter management, twitter bulk, twitter follow unfollow utility, twitter follow tools, twitter, tweppi, twweepi, tweep, tweep follow unfollow" />
<meta name="language" content="en" />
<meta name="robots" content="index, follow" />
    <title>Tweepi :: manage your Twitter account :: Tweepi</title>
    <link rel="shortcut icon" href="/favicon.ico" />
    <link rel="stylesheet" type="text/css" media="screen" href="/css/style.css?n=118" />
    <!--[if lte IE 8]>
<style type="text/css">
.ext-el-mask {
  max-height: 3000px;
}
</style>
<![endif]-->

<!--[if lt IE 7]>
<style type="text/css">.premium_sprite, .logo_img { behavior: url('/css/ie6pngfix/iepngfix.php') }</style>
<script type="text/javascript" src="/css/ie6pngfix/iepngfix_tilebg.js"></script>
<![endif]-->

<!--[if IE 888888]>
<style>.submenu li.hover, .submenu li.selected { behavior: url('/css/css3-pie/PIE.php'); }</style>
<![endif]-->

<!--[if lte IE 8]>
<style>.css3-pie, .btn, .shadow_input, .error_msg, .actions_popup, .safelistitem .safeunsafe, .report_bugs_float { behavior: url('/css/css3-pie/PIE.php'); }</style>
<![endif]-->        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<script type="text/javascript" src="/js/general.js?n=25"></script>
    <script type="text/javascript">
    $(document).ready(function() {
        $('#cleanup_tweeted_since_form').submit(function() {
            var ltt_val_days = $('#ltt_val_days').val();
            if(ltt_val_days > 0) {
                var ltt_val = new Date().getTime() - (ltt_val_days*86400000);
                $('#ltt_val').val(ltt_val);
            }
        });

        $('#cleanup_followed_tweeted_since_form').submit(function() {
            var ltt_val_days = $('#ltt_val_days2').val();
            if(ltt_val_days > 0) {
                var ltt_val = new Date().getTime() - (ltt_val_days*86400000);
                $('#ltt_val2').val(ltt_val);
            }
        });

        $('#flush_didnt_follow_in_form').submit(function() {
            var hat_val_days = $('#hat_val_days').val();
            if(hat_val_days > 0) {
                var hat_val = new Date().getTime() - (hat_val_days*86400000);
                $('#hat_val').val(hat_val);
            }
        });
    });
</script>
        <script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-7899407-6']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>  </head>
  <body>
        <div class="mainmenu-wrapper middle_wrapper center_div">
  <div class="mainmenu">
  <ul>
          <li class="nobullet selected"><a href="/dashboard">Dashboard</a></li>
        <li class="tweepi_sprite">
      <a href="/dashboard">Manage Twitter</a>      <ul id="manage" class="submenu">
        <li><a href="/geeky_flush">Flush the unfollowers</a></li>
        <li><a href="/geeky_recip">Reciprocate</a></li>
        <li><a href="/geeky_cleanup">Cleanup People I'm Following</a></li>
        <li><a href="/geeky_cleanup_followers">Cleanup People Following Me</a></li>
      </ul>
    </li>
    <li class="tweepi_sprite">
      <a href="/dashboard">Follow Tweeps</a>      <ul id="follow" class="submenu">
        <li><a href="/follow_by_followers">@user's followers</a></li>
        <li><a href="/follow_by_following">@user's friends</a></li>
        <li><a href="/follow_by_list_content">List members</a></li>
        <li><a href="/follow_by_copy_paste">Copy/paste</a></li>
        <li><a href="/follow_by_search">Tweet search</a></li>
        <li><a href="/follow_by_user_search">User search <span class="prem_tag">NEW</span></a></li>
      </ul>
    </li>

          <li class="tweepi_sprite"><a href="/premium/packages">Premium</a></li>
    
    <li class="tweepi_sprite"><a href="/blog/">Blog</a></li>
    <li class="tweepi_sprite"><a href="/help">Help</a></li>
  </ul>
</div></div>
<div class="head-wrapper head-thinner">
  <div class="noisy-gray head_graylayer"></div>
  <div class="noisy-blue head_bluelayer"></div>
  <div class="whitestrip whitestrip-thinner"></div>

  <div class="head center_div">
    <div class="noisy-gray head_graylayer"></div>
    <div class="noisy-blue head_bluelayer"></div>
    <div class="whitestrip whitestrip-thinner"></div>

    <div class="logo">
<!--  <a class="hiretip" href="/jobs/">We're hiring!</a>-->
  <a href="/">
          <img class="logo_img" alt="Tweepi Twitter Follow Management" src="/images/logo-trans3.png" height="105" width="240" />      </a>
  <div class="slogan">make sense of your<br />Twitter account</div>
</div>      <div class="login-bar css3-pie">
          Hi
              <span id="loggedinuser"><strong>myemail@hotmail.com </strong>
                      
            &nbsp;|&nbsp;managing<select id="owned_user_list" class="owned_user_list" url="/account/switch">
              <option value="@followback3566" selected="selected" >@followback3566</option><option value="@followback4list" >@followback4list</option>              <option value="Add_new">(Add new...)</option>
            </select>
                <span class="type_free">(FREE)</span>        </span>
              

            &nbsp;|&nbsp;

      <a href="/dashboard">my dashboard</a>&nbsp;|&nbsp;
      <a href="/safelist">safelist</a>&nbsp;|&nbsp;
      <a href="/auth/logout">logout</a>      </div>
  </div>
</div>
    <div class="center_div middle_wrapper">
      <div class="content">
        <div id="advert_div" class="adverts">
  <!-- BuySellAds.com Zone Code -->
  <div id="bsap_1251699" class="bsarocks bsap_c9e81a9bf976af7ac301773dbca4e0c7"></div>
  <!-- END BuySellAds.com Zone Code --> 
</div>
                
        <table class="twocols">
    <tr><td></td><td class="thin_separator"></td><td class="sidebar"></td></tr>
    <tr>
        <td>
            <div>
                <h1>My Tweepi Dashboard
                                        <span class="smallerh1"><small>(free basic)</small></span>
                                    </h1>
            </div>

            
            <p>The dashboard shows you a quick overview of your Twitter account as well as quick shortcuts around Tweepi. </p>

            
            <div class="last_updated_right">Last updated <abbr title="Tweepi updates your followers and following list once every 15 minutes, while you're using Tweepi.">less than a minute</abbr> ago</div>
            <h3>Manage your Twitter account</h3>
            <div class="dashboard_box">
                <table>
                    <tr>
                        <td class="left">You are following <strong class="num_tweeps">473 tweeps</strong> who are not following you back.</td>
                        <td class="right"><a href="/geeky_flush" class="btn btn_smaller btn_blue inline_block">Flush &raquo;</a></td>
                    </tr>
                </table>
            </div>
            <div class="dashboard_box">
                <table>
                    <tr>
                        <td class="left"><strong class="num_tweeps">13 tweeps</strong> are following you, but you're not following them back.</td>
                        <td class="right"><a href="/geeky_recip" class="btn btn_smaller btn_blue inline_block">Reciprocate &raquo;</a></td>
                    </tr>
                </table>
            </div>
            <div class="dashboard_box">
                <table>
                    <tr>
                        <td class="left">Is your Twitter stream getting crowded with tweets? You are following <strong class="num_tweeps">1274 users</strong>, why not unfollow some.</td>
                        <td class="right"><a href="/geeky_cleanup" class="btn btn_smaller btn_blue inline_block">Cleanup &raquo;</a></td>
                    </tr>
                </table>
            </div>
            <div class="dashboard_box">
                <table>
                    <tr>
                        <td class="left">
                            Do you have some undesirable people following you? <strong class="num_tweeps">814 users</strong> follow you. Would you like to force some to unfollow you? <span class="prem_tag">NEW</span>
                            <br/><span class="upgrade_text">This is a Tweepi Premium feature. <a href="/premium/packages">Upgrade now to enable &raquo;</a></span>                        </td>
                        <td class="right">
                            <a href="/geeky_cleanup_followers" class="btn btn_smaller btn_blue btn_disabled inline_block">Cleanup Followers &raquo;</a>
                        </td>
                    </tr>
                </table>
            </div>

            <h3>Follow new tweeps</h3>
            <div class="dashboard_box">
                <table>
                    <tr>
                        <td class="left">Want to follow new users based on which tweeps they're interested in? Try following an @user's followers.</td>
                        <td class="right"><a href="/follow_by_followers" class="btn btn_smaller btn_blue inline_block">Follow followers &raquo;</a></td>
                    </tr>
                </table>
            </div>
            <div class="dashboard_box">
                <table>
                    <tr>
                        <td class="left">Got a role model and you want to follow who he or she is following?</td>
                        <td class="right"><a href="/follow_by_following" class="btn btn_smaller btn_blue inline_block">Follow friends &raquo;</a></td>
                    </tr>
                </table>
            </div>
            <div class="dashboard_box">
                <table>
                    <tr>
                        <td class="left">Many interesting lists out there. Want to follow a select few users from a certain list? Tweepi's follow by list makes it super easy to do so.</td>
                        <td class="right"><a href="/follow_by_list_content" class="btn btn_smaller btn_blue inline_block">Follow list &raquo;</a></td>
                    </tr>
                </table>
            </div>
            <div class="dashboard_box">
                <table>
                    <tr>
                        <td class="left">Want to copy/paste a comma separated list of Twitter users and analyze them in Tweepi's awesome table? Try this.</td>
                        <td class="right"><a href="/follow_by_copy_paste" class="btn btn_smaller btn_blue inline_block">Paste &amp; analyze &raquo;</a></td>
                    </tr>
                </table>
            </div>
            <div class="dashboard_box">
                <table>
                    <tr>
                        <td class="left">
                            Search for tweets, restrict by geolocation and follow users who just
                            tweeted about that criteria. An awesome new way
                            to discover and follow new tweeps.
                            <br/><span class="upgrade_text">This is a Premium Platinum feature. <a href="/premium/buy/platinum">Upgrade now to enable &raquo;</a></span>                        </td>
                        <td class="right">
                            <a href="/follow_by_search" class="btn btn_smaller btn_blue btn_disabled inline_block">Tweet search &raquo;</a>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="dashboard_box">
                <table>
                    <tr>
                        <td class="left">
                            <strong>Search for users by bio</strong>, interest, full name, company name, location, or other criteria. <span class="prem_tag">NEW</span>
                            <br/><span class="upgrade_text">This is a Premium Platinum feature. <a href="/premium/buy/platinum">Upgrade now to enable &raquo;</a></span>                        </td>
                        <td class="right">
                            <a href="/follow_by_user_search" class="btn btn_smaller btn_blue btn_disabled inline_block">Bio search &raquo;</a>
                        </td>
                    </tr>
                </table>
            </div>


                        <p class="upgrade_p"><a href="/premium/packages">Upgrade to Premium &raquo;</a></p>
            
            <h3>Premium Unfollow Tools</h3>

            <div class="dashboard_box">
                <form id="cleanup_tweeted_since_form" action="/premium/packages" method="get">
                <input type="hidden" id="ltt_op" name="ltt_op" value="before" />
                <input type="hidden" id="ltt_val" name="ltt_val" value="0" />
                <table>
                    <tr>
                        <td class="left">Unfollow users who haven't tweeted in <input id="ltt_val_days" name="ltt_val_days" class="shadow_input inline_input" value="30" /> days.</td>
                        <td class="right"><a href="#x" onclick="javascript:$('#cleanup_tweeted_since_form').submit(); return false;" class="btn btn_smaller btn_blue btn_disabled inline_block">Unfollow them &raquo;</a></td>
                    </tr>
                </table>
                </form>
            </div>
            <div class="dashboard_box">
                <form id="flush_didnt_follow_in_form" action="/premium/packages" method="get">
                <input type="hidden" id="hat_op" name="hat_op" value="before" />
                <input type="hidden" id="hat_val" name="hat_val" value="0" />
                <table>
                    <tr>
                        <td class="left">Unfollow users I followed more than <input id="hat_val_days" name="hat_val_days" class="shadow_input inline_input" value="30" /> days ago, and haven't followed me back.</td>
                        <td class="right"><a href="#x" onclick="javascript:$('#flush_didnt_follow_in_form').submit(); return false;" class="btn btn_smaller btn_blue btn_disabled inline_block">Flush them &raquo;</a></td>
                    </tr>
                </table>
                </form>
            </div>
            <div class="dashboard_box">
                <table>
                    <tr>
                        <td class="left">Cleanup tweeps with the default egg avatar (i.e never uploaded an image).</td>
                        <td class="right"><a href="/premium/packages" class="btn btn_smaller btn_blue btn_disabled inline_block">Cleanup eggs &raquo;</a></td>
                    </tr>
                </table>
            </div>
            <div class="dashboard_box">
                <table>
                    <tr>
                        <td class="left">Cleanup tweeps with no bio descriptions.</td>
                        <td class="right"><a href="/premium/packages" class="btn btn_smaller btn_blue btn_disabled inline_block">Cleanup bio-less &raquo;</a></td>
                    </tr>
                </table>
            </div>

            


                        <p class="upgrade_p"><a href="/premium/packages">Upgrade to Premium &raquo;</a></p>
            
            <h3>Force Unfollow Tools <span class="prem_tag">NEW</span></h3>

            <div class="dashboard_box">
                <form id="cleanup_followed_tweeted_since_form" action="/premium/packages" method="get">
                <input type="hidden" id="ltt_op2" name="ltt_op" value="before" />
                <input type="hidden" id="ltt_val2" name="ltt_val" value="0" />
                <table>
                    <tr>
                        <td class="left">Force users who haven't tweeted in <input id="ltt_val_days2" name="ltt_val_days" class="shadow_input inline_input" value="30" /> days to unfollow me.</td>
                        <td class="right"><a href="#x" onclick="javascript:$('#cleanup_followed_tweeted_since_form').submit(); return false;" class="btn btn_smaller btn_blue btn_disabled inline_block">Force unfollow &raquo;</a></td>
                    </tr>
                </table>
                </form>
            </div>
            <div class="dashboard_box">
                <table>
                    <tr>
                        <td class="left">Force users following you with the default egg avatar to unfollow you (i.e never uploaded an image).</td>
                        <td class="right"><a href="/premium/packages" class="btn btn_smaller btn_blue btn_disabled inline_block">Cleanup eggs &raquo;</a></td>
                    </tr>
                </table>
            </div>
            <div class="dashboard_box">
                <table>
                    <tr>
                        <td class="left">Force users following you with no bio descriptions to unfollow you.</td>
                        <td class="right"><a href="/premium/packages" class="btn btn_smaller btn_blue btn_disabled inline_block">Cleanup bio-less &raquo;</a></td>
                    </tr>
                </table>
            </div>
            
            
        </td>
        <td class="thin_separator">
            <div class="tweepi_sprite v_separator inline_block">&nbsp;</div>
        </td>
        <td class="sidebar">
            <ul class="sidebar_links morepadding">
    <li class="upgrade_text"><a href="/premium/packages">Upgrade @followback3566</a><br/><br/></li>    <li><a href="/dashboard">Dashboard</a></li>
    <li><a href="/safelist">Safelisted Users</a></li>
    <li><a href="/account/edit">Edit account info</a></li>
    <li><a href="/account/manage_owned">Manage Accounts</a></li>
    <li><a href="/auth/change_password">Change Password</a></li>    
    <li><a href="/contact-us">Give us feedback</a></li>
    <li><a href="/contact-us">Contact us</a><br/><br/></li>

    
</ul>        </td>
    </tr>
</table>      </div>
    </div>
    
          <div class="tweepi_sprite jumbo_footer">
  <div class="noisy-gray">
    <div class="dashes_sprite dashes_h dashes_top"></div>
    <div class="dashes_sprite dashes_h dashes_bottom"></div>
    <div class="footer_content center_div">
      <div class="footer_column inline_block">
        <h3>Tweepi's Tips 'n' Tricks Blog</h3>
        <ul>
                      <li><a href="http://tweepi.com/blog/?p=1043">Twitter rules more strict. Quick Actions retired. Default Button introduced.</a> &mdash;
              <span class="dateago">7 months ago</span></li>
                      <li><a href="http://tweepi.com/blog/?p=1029">Stricter Twitter Rules. Introducing Tweepi’s new Quick Actions.</a> &mdash;
              <span class="dateago">7 months ago</span></li>
                      <li><a href="http://tweepi.com/blog/?p=1012">New Follow by Bio Search. Retired “Load stats”.</a> &mdash;
              <span class="dateago">about 1 year ago</span></li>
                      <li><a href="http://tweepi.com/blog/?p=997">Tweepi’s New “Force User to Unfollow You” Feature</a> &mdash;
              <span class="dateago">over 2 years ago</span></li>
                  </ul>
        <div class="button_container">
          <a href="/blog/" class="btn btn_small btn_blue btn_white_border inline_block">Read more &raquo;</a>
        </div>
      </div>
      <div class="dashes_sprite dashes_v footer_seperator inline_block"></div>
      <div class="footer_column inline_block">
        <h3>About Tweepi</h3>
        <p>Tweepi helps you make sense of your Twitter social graph, with stats. </p>
        <ul>
          <li><a href="/help">Tweepi Help</a></li>
          <li><a href="/premium/packages">Tweepi Premium accounts</a></li>
<!--                    <li><a href="/contact-us">Contact us</a></li>-->
          <li><a href="/privacy">Privacy policy</a></li>
          <li><a href="/refunds">Refund policy</a></li>
          <li><a href="/jobs/">Jobs at Tweepi</a></li>
        </ul>
      </div>
      <div class="dashes_sprite dashes_v footer_seperator inline_block"></div>
      <div class="footer_column inline_block">
        <h3>Got questions or ideas?</h3>
        <div class="got_ideas">
          <a class="tweepi_sprite got_ideas_img" href="/contact-us">&nbsp;</a>
        </div>
      </div>
    </div>

  </div>
</div>
        
    <div class="abs_footer center_div">
  <div class="big_stats">
    <span class="bigger">1,031,782</span> users and counting trust Tweepi
    <br/><span class="bigger">828,796,639</span> tweeps un/followed
    <!-- time taken: 1.5974044799805E-5 -->
  </div>
  <div class="tweepi_sprite footer_line inline_block">
    <a href="http://thoughtpick.com/">another thoughtpick</a>  &mdash;
    <a href="/contact-us">contact us</a>  &mdash;
    <a href="/help">help</a>  </div>
</div>    <!-- BuySellAds.com Ad Code -->
<script type="text/javascript">
  $(window).load(function(){
    (function(){
      var bsa = document.createElement('script');
      bsa.type = 'text/javascript';
      bsa.async = true;
      bsa.src = '//s3.buysellads.com/ac/bsa.js';
      (document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(bsa);
    })();
  });
</script>
<!-- END BuySellAds.com Ad Code -->    <script type="text/javascript">_kmq.push(['identify', '912947']);_kmq.push(['record', 'Signed In']);_kmq.push(['set', {'Email Address':'joesoef_9+5188889@hotmail.com'}]);</script>
<!-- Total time taken for page 0.111s -->  </body>
</html> 

this is the page source ( above)

search for the word ;managing to get to the code

I have looked for other buttons but this is the only one :(

I have also tried something like this:

_FFLoadWait()
    _FFXPath('//select[@id="owned_user_list"]//option[@value="@followbacklist3"]', 'selected=true')

but it give me this error

__FFStartProcess: ""C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -new-window "http://tweepi.com/dashboard"  "-repl 4242 "
_FFConnect: OS: WIN_81 WIN32_NT 9600 
_FFConnect: AutoIt: 3.3.10.2
_FFConnect: FF.au3: 0.6.0.1b-10
_FFConnect: IP: 127.0.0.1
_FFConnect: Port:   4242
_FFConnect: Delay:  2ms
_FFConnect: Socket:     840
_FFConnect: Browser:    Mozilla/5.0 (Windows NT 6.3; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
__FFSendJavaScripts: Sending functions to FireFox .......... done
_FFLoadWait: . loaded in 11ms
[object XrayWrapper [object HTMLDocument]] - {location: {...}, getElementsByName: function() {...}, getItems: function() {...}, open: function() {...}, close: function() {...}, write: function() {...}, writeln: function() {...}, ...}
Edited by Arclite86
Link to comment
Share on other sites

Based upon the html you posted, the select element isn't contained within a form. Therefore,  it makes sense that _FFFormOptionselect isn't working.

I don't see any error message from your xpath call. How do you know it isn't returning the desired element?

so if i understand you correctly the  _FFFormOptionselect will not work in this case?..

yes i tried to use the xpath call but it didnt work the optionbox did not chance from names

i am probably doing something wrong here:

FFStart("http://tweepi.com/dashboard")
_FFLoadWait()
    _FFXPath('//select[@id="owned_user_list"]//option[@value="@followbacklist3"]', 'selected=true')
 

I got this code from an other autoit topic but I seems i didnt adjust it correctly, can anybody help me with this.

Edited by Arclite86
Link to comment
Share on other sites

 

Does something like this work?

$sCommand = '//select[@id="owned_user_list"]//option[@value="@followbacklist3"]'
_FFXPath($sCommand, "selected=true", 9)

$sCommand = StringFormat('//select[@id="owned_user_list"]')
_FFDispatchEvent( _FFXPath($sCommand, "", 9) , "change")

I'm getting so frustrated I keep getting the same message  :wacko:   and its very importend button for me to click..

__FFStartProcess: ""C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -new-window "http://tweepi.com/dashboard"  "-repl 4242 "
_FFConnect: OS: WIN_81 WIN32_NT 9600 
_FFConnect: AutoIt: 3.3.10.2
_FFConnect: FF.au3: 0.6.0.1b-10
_FFConnect: IP: 127.0.0.1
_FFConnect: Port:   4242
_FFConnect: Delay:  2ms
_FFConnect: Socket:     832
_FFConnect: Browser:    Mozilla/5.0 (Windows NT 6.3; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
__FFSendJavaScripts: Sending functions to FireFox .......... done
_FFLoadWait: . loaded in 11ms
[object XrayWrapper [object HTMLDocument]] - {location: {...}, getElementsByName: function() {...}, getItems: function() {...}, open: function() {...}, close: function() {...}, write: function() {...}, writeln: function() {...}, ...}
Link to comment
Share on other sites

You think that you are frustrated... what about me?! :sweating:

Add this line to the top of you script and then post the output again:

$_FF_COM_TRACE = True

P.S. I also notice that the value you are trying to locate (@followbacklist3) doesn't appear in the html you posted earlier. >_<

I dont know what happend but with the code above it worked :D  :D

__FFStartProcess: ""C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -new-window "http://tweepi.com/dashboard"  "-repl 4242 "
_FFConnect: OS: WIN_81 WIN32_NT 9600 
_FFConnect: AutoIt: 3.3.10.2
_FFConnect: FF.au3: 0.6.0.1b-10
_FFConnect: IP: 127.0.0.1
_FFConnect: Port:   4242
_FFConnect: Delay:  2ms
_FFConnect: Socket:     828
_FFConnect: Browser:    Mozilla/5.0 (Windows NT 6.3; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
__FFSendJavaScripts: Sending functions to FireFox .......... done
_FFLoadWait: . loaded in 11ms
[object XrayWrapper [object HTMLDocument]] - {location: {...}, getElementsByName: function() {...}, getItems: function() {...}, open: function() {...}, close: function() {...}, write: function() {...}, writeln: function() {...}, ...}
__FFSend: FFau3.xpath=null;try{FFau3.xpath=FFau3.WCD.evaluate("//select[@id='owned_user_list']//option[@value='@followbacklist6']",FFau3.WCD,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue.selected=true;}catch(e){'_FFXPath_Error: '+e;};
__FFRecv: 1
__FFSend: FFau3.xpath=null;try{FFau3.xpath=FFau3.WCD.evaluate("//select[@id='owned_user_list']",FFau3.WCD,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;}catch(e){'_FFXPath_Error: '+e;};
__FFRecv: [object XrayWrapper [object HTMLSelectElement]] - {0: {...}, 1: {...}, 2: {...}, item: function() {...}, namedItem: function() {...}, add: function() {...}, remove: function() {...}, ...}
__FFSend: try{FFau3.simulateEvent(FFau3.xpath,'Event','change',13);}catch(e){'_FFCmd_Err';};
__FFRecv: 1
__FFSend: FFau3.WCD=window.content.top.document;
__FFRecv: [object XrayWrapper [object HTMLDocument]] - {location: {...}, getElementsByName: function() {...}, getItems: function() {...}, open: function() {...}, close: function() {...}, write: function() {...}, writeln: function() {...}, ...}
[object XrayWrapper [object HTMLDocument]] - {location: {...}, getElementsByName: function() {...}, getItems: function() {...}, open: function() {...}, close: function() {...}, write: function() {...}, writeln: function() {...}, ...}
+>16:27:05 AutoIt3.exe ended.rc:0
+>16:27:05 AutoIt3Wrapper Finished..
>Exit code: 0    Time: 16.844

THANKS ALLOT!!! :D  :thumbsup:  :ILA:  :robot:

Link to comment
Share on other sites

how can i create a variable in this, I tried this 

$names = ("name1")  

$sCommand = '//select[@id="owned_user_list"]//option[@value='" & $names & "'")
_FFXPath($sCommand, "selected=true", 9)

$sCommand = StringFormat('//select[@id="owned_user_list"]')
_FFDispatchEvent( _FFXPath($sCommand, "", 9) , "change")

but it doesn work like it does here:

_FFCmd("FFau3.xpath.value='" & $names & "'")
Edited by Arclite86
Link to comment
Share on other sites

I tried this but it doesnt work

$names = ("followbacklist6")


$sCommand = '//select[@id="owned_user_list"]'
StringFormat = ("//option[@value='" & $names & "'")
_FFXPath($sCommand, "selected=true", 9)



$sCommand = StringFormat('//select[@id="owned_user_list"]')
_FFDispatchEvent( _FFXPath($sCommand, "", 9) , "change")

I get this error:

--> Press Ctrl+Alt+F5 to Restart or Ctrl+Break to Stop
__FFStartProcess: ""C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -new-window "http://tweepi.com/dashboard"  "-repl 4242 "
_FFConnect: OS: WIN_81 WIN32_NT 9600 
_FFConnect: AutoIt: 3.3.10.2
_FFConnect: FF.au3: 0.6.0.1b-10
_FFConnect: IP: 127.0.0.1
_FFConnect: Port:   4242
_FFConnect: Delay:  2ms
_FFConnect: Socket:     848
_FFConnect: Browser:    Mozilla/5.0 (Windows NT 6.3; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
__FFSendJavaScripts: Sending functions to FireFox .......... done
_FFLoadWait: . loaded in 11ms
[object XrayWrapper [object HTMLDocument]] - {location: {...}, getElementsByName: function() {...}, getItems: function() {...}, open: function() {...}, close: function() {...}, write: function() {...}, writeln: function() {...}, ...}
_FFLoadWait: . loaded in 11ms
[object XrayWrapper [object HTMLDocument]] - {location: {...}, getElementsByName: function() {...}, getItems: function() {...}, open: function() {...}, close: function() {...}, write: function() {...}, writeln: function() {...}, ...}
"C:\test.au3" (2956) : ==> Error parsing function call.:
StringFormat = ("//option[@value='" & $names & "'")
^ ERROR
->12:39:29 AutoIt3.exe ended.rc:1
+>12:39:29 AutoIt3Wrapper Finished..
>Exit code: 1    Time: 9.025

could you please help

Edited by Arclite86
Link to comment
Share on other sites

It's not difficult. You just need to build the string with the quotes in the correct position. You know that the end result needs to look like this:

//select[@id="owned_user_list"]//option[@value="@followbacklist6"]

This is how I would do it:

$names = 'followbacklist6'
$sCommand = '//select[@id="owned_user_list"]//option[@value="' & $names & '"]')
_FFXPath($sCommand, "selected=true", 9)
$sCommand = '//select[@id="owned_user_list"]'
_FFDispatchEvent( _FFXPath($sCommand, "", 9) , "change")

This code is untested; Give it a try and then adjust as necessary.

P.S. The call to StringFormat in my initial example code was left over from another example and wasn't needed.

Link to comment
Share on other sites

is there also way to click the selected name, because now it selects the name but if its not clicked nothing will happen,

it tried something like this to click it but it didnt work

$oButton2 = _FFXPath("//option[@value='followbacklist6']")
_FFClick($oButton2)

this is the html code:

<select id="owned_user_list" class="owned_user_list" url="/account/switch">

    <option selected="selected" value="@followbacklist3"></option>
    <option value="@followbacklist6"></option>
</select>

I also found a other way 

<form id="switch_primary_form" class="bigradioform" method="post" action="switch_primary"
<input class="bigradio" type="radio" value="2291037996" name="account"></input>


      @followbacklist6

<br></br> 

but than i have to click this radiobutton by name (name:@followbacklist6)

Edited by Arclite86
Link to comment
Share on other sites

Are you saying that the proper entry is selected, but the rest of the page doesn't get "refreshed"? I note that the Select element has a url attribute. I don't believe that is standard attribute.

It's difficult to advise you on how to proceed since the website isn't accessible to everyone. Perhaps someone else will jump in here with some ideas.

Link to comment
Share on other sites

Are you saying that the proper entry is selected, but the rest of the page doesn't get "refreshed"? I note that the Select element has a url attribute. I don't believe that is standard attribute.

It's difficult to advise you on how to proceed since the website isn't accessible to everyone. Perhaps someone else will jump in here with some ideas.

could you help me with slecting the radio button i tried this:

_FFFormRadioButton("2291037996",0,"account","switch_primary_form","form")
Link to comment
Share on other sites

There isn't a radio button in the html you previously posted, so I'm not able to assist you with this. You need to review the online documentation for _FFFormRadioButton. You are clearly passing the wrong values of $sRadioButtonMode and $sFormMode.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">
  <head profile="http://gmpg.org/xfn/11">
    <script>
  var _errs=["50db73951bf079f60b00019b"];(function(a,b){a.onerror=function(){_errs.push(arguments)};
    var d=function(){var a=b.createElement("script"),c=b.getElementsByTagName("script")[0];
      a.src="//d15qhc0lu1ghnk.cloudfront.net/beacon.js";a.async=!0;
      c.parentNode.insertBefore(a,c)};a.addEventListener?a.addEventListener("load",d,!1):
      a.attachEvent("onload",d)})(window,document);

  _errs.meta = {};
  _errs.meta.isAuthenticated = true;
</script>        <script type="text/javascript">
  var _kmq = _kmq || [];
  var _kmk = _kmk || 'f24aab1869054e4310e3f4ff44e95beeb731ea41';
  function _kms(u){
    setTimeout(function(){
      var d = document, f = d.getElementsByTagName('script')[0],
      s = d.createElement('script');
      s.type = 'text/javascript'; s.async = true; s.src = u;
      f.parentNode.insertBefore(s, f);
    }, 1);
  }
  _kms('//i.kissmetrics.com/i.js');
  _kms('//doug1izaerwt3.cloudfront.net/' + _kmk + '.1.js');
</script>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Style-Type" content="text/css" />
    <meta http-equiv="Content-Script-Type" content="text/javascript" />
    <meta http-equiv="X-Ua-Compatible" content="IE=8" /> 
    <meta name="title" content="Tweepi :: manage your Twitter account" />
<meta name="description" content="Tweepi Twitter Follow Management Utility is a set of Twitter tools to add, follow and unfollow tweeps in bulk" />
<meta name="keywords" content="twitter tools, how to twitter followers, twitter management, twitter bulk, twitter follow unfollow utility, twitter follow tools, twitter, tweppi, twweepi, tweep, tweep follow unfollow" />
<meta name="language" content="en" />
<meta name="robots" content="index, follow" />
    <title>Tweepi :: manage your Twitter account :: Tweepi</title>
    <link rel="shortcut icon" href="/favicon.ico" />
    <link rel="stylesheet" type="text/css" media="screen" href="/css/style.css?n=118" />
    <!--[if lte IE 8]>
<style type="text/css">
.ext-el-mask {
  max-height: 3000px;
}
</style>
<![endif]-->

<!--[if lt IE 7]>
<style type="text/css">.premium_sprite, .logo_img { behavior: url('/css/ie6pngfix/iepngfix.php') }</style>
<script type="text/javascript" src="/css/ie6pngfix/iepngfix_tilebg.js"></script>
<![endif]-->

<!--[if IE 888888]>
<style>.submenu li.hover, .submenu li.selected { behavior: url('/css/css3-pie/PIE.php'); }</style>
<![endif]-->

<!--[if lte IE 8]>
<style>.css3-pie, .btn, .shadow_input, .error_msg, .actions_popup, .safelistitem .safeunsafe, .report_bugs_float { behavior: url('/css/css3-pie/PIE.php'); }</style>
<![endif]-->        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<script type="text/javascript" src="/js/general.js?n=25"></script>
    <script type="text/javascript">
    $(document).ready(function() {
        $('.btn_submit_form').click(function() {
            $('#switch_primary_form').submit();
            return false;
        });
        $("#btn_submit_form").keyup(function(event){
            if(event.keyCode == 13){
                $("#submit_btn").click();
            }
        });
    });
</script>
        <script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-7899407-6']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>  </head>
  <body>
        <div class="mainmenu-wrapper middle_wrapper center_div">
  <div class="mainmenu">
  <ul>
          <li class="nobullet"><a href="/dashboard">Dashboard</a></li>
        <li class="tweepi_sprite">
      <a href="/dashboard">Manage Twitter</a>      <ul id="manage" class="submenu">
        <li><a href="/geeky_flush">Flush the unfollowers</a></li>
        <li><a href="/geeky_recip">Reciprocate</a></li>
        <li><a href="/geeky_cleanup">Cleanup People I'm Following</a></li>
        <li><a href="/geeky_cleanup_followers">Cleanup People Following Me</a></li>
      </ul>
    </li>
    <li class="tweepi_sprite">
      <a href="/dashboard">Follow Tweeps</a>      <ul id="follow" class="submenu">
        <li><a href="/follow_by_followers">@user's followers</a></li>
        <li><a href="/follow_by_following">@user's friends</a></li>
        <li><a href="/follow_by_list_content">List members</a></li>
        <li><a href="/follow_by_copy_paste">Copy/paste</a></li>
        <li><a href="/follow_by_search">Tweet search</a></li>
        <li><a href="/follow_by_user_search">User search <span class="prem_tag">NEW</span></a></li>
      </ul>
    </li>

          <li class="tweepi_sprite"><a href="/premium/packages">Premium</a></li>
    
    <li class="tweepi_sprite"><a href="/blog/">Blog</a></li>
    <li class="tweepi_sprite"><a href="/help">Help</a></li>
  </ul>
</div></div>
<div class="head-wrapper head-thinner">
  <div class="noisy-gray head_graylayer"></div>
  <div class="noisy-blue head_bluelayer"></div>
  <div class="whitestrip whitestrip-thinner"></div>

  <div class="head center_div">
    <div class="noisy-gray head_graylayer"></div>
    <div class="noisy-blue head_bluelayer"></div>
    <div class="whitestrip whitestrip-thinner"></div>

    <div class="logo">
<!--  <a class="hiretip" href="/jobs/">We're hiring!</a>-->
  <a href="/">
          <img class="logo_img" alt="Tweepi Twitter Follow Management" src="/images/logo-trans3.png" height="105" width="240" />      </a>
  <div class="slogan">make sense of your<br />Twitter account</div>
</div>      <div class="login-bar css3-pie">
          Hi
              <span id="loggedinuser"><strong>joesoef_9+324341@hotmail.com </strong>
                      
            &nbsp;|&nbsp;managing<select id="owned_user_list" class="owned_user_list" url="/account/switch">
              <option value="@followbacklist3" >@followbacklist3</option><option value="@followbacklist6" selected="selected" >@followbacklist6</option>              <option value="Add_new">(Add new...)</option>
            </select>
                <span class="type_free">(FREE)</span>        </span>
              

            &nbsp;|&nbsp;

      <a href="/dashboard">my dashboard</a>&nbsp;|&nbsp;
      <a href="/safelist">safelist</a>&nbsp;|&nbsp;
      <a href="/auth/logout">logout</a>      </div>
  </div>
</div>
    <div class="center_div middle_wrapper">
      <div class="content">
        <div id="advert_div" class="adverts">
  <!-- BuySellAds.com Zone Code -->
  <div id="bsap_1251699" class="bsarocks bsap_c9e81a9bf976af7ac301773dbca4e0c7"></div>
  <!-- END BuySellAds.com Zone Code --> 
</div>
                
        
<div class="left_top_div_wider">
  <h1>Switch primary Twitter account</h1>

  <p>You are about to change your primary Twitter account. This will change the primary account used to access 
    your account by 'login via Twitter'.</p>
  <p>Please choose which account to use as primary:</p>
  <form id="switch_primary_form" action="switch_primary" class="bigradioform" method="post">
        <input class="bigradio" type="radio" name="account" value="363596699" checked="checked">
      <strong>@followbacklist3 (Current Primary) </strong><br>
        <input class="bigradio" type="radio" name="account" value="2291037996" >
      @followbacklist6<br>
    
    <br /><br />
  <a class="btn btn_smaller btn_gray inline_block" href="/account/manage_owned">&laquo; Cancel</a>&nbsp;
    <a href="#" class="btn btn_smaller btn_blue inline_block btn_submit_form">Confirm &raquo;</a>
  </form>
</div>      </div>
    </div>
    
          <div class="tweepi_sprite jumbo_footer">
  <div class="noisy-gray">
    <div class="dashes_sprite dashes_h dashes_top"></div>
    <div class="dashes_sprite dashes_h dashes_bottom"></div>
    <div class="footer_content center_div">
      <div class="footer_column inline_block">
        <h3>Tweepi's Tips 'n' Tricks Blog</h3>
        <ul>
                      <li><a href="http://tweepi.com/blog/?p=1043">Twitter rules more strict. Quick Actions retired. Default Button introduced.</a> &mdash;
              <span class="dateago">7 months ago</span></li>
                      <li><a href="http://tweepi.com/blog/?p=1029">Stricter Twitter Rules. Introducing Tweepi’s new Quick Actions.</a> &mdash;
              <span class="dateago">7 months ago</span></li>
                      <li><a href="http://tweepi.com/blog/?p=1012">New Follow by Bio Search. Retired “Load stats”.</a> &mdash;
              <span class="dateago">about 1 year ago</span></li>
                      <li><a href="http://tweepi.com/blog/?p=997">Tweepi’s New “Force User to Unfollow You” Feature</a> &mdash;
              <span class="dateago">over 2 years ago</span></li>
                  </ul>
        <div class="button_container">
          <a href="/blog/" class="btn btn_small btn_blue btn_white_border inline_block">Read more &raquo;</a>
        </div>
      </div>
      <div class="dashes_sprite dashes_v footer_seperator inline_block"></div>
      <div class="footer_column inline_block">
        <h3>About Tweepi</h3>
        <p>Tweepi helps you make sense of your Twitter social graph, with stats. </p>
        <ul>
          <li><a href="/help">Tweepi Help</a></li>
          <li><a href="/premium/packages">Tweepi Premium accounts</a></li>
<!--                    <li><a href="/contact-us">Contact us</a></li>-->
          <li><a href="/privacy">Privacy policy</a></li>
          <li><a href="/refunds">Refund policy</a></li>
          <li><a href="/jobs/">Jobs at Tweepi</a></li>
        </ul>
      </div>
      <div class="dashes_sprite dashes_v footer_seperator inline_block"></div>
      <div class="footer_column inline_block">
        <h3>Got questions or ideas?</h3>
        <div class="got_ideas">
          <a class="tweepi_sprite got_ideas_img" href="/contact-us">&nbsp;</a>
        </div>
      </div>
    </div>

  </div>
</div>
        
    <div class="abs_footer center_div">
  <div class="big_stats">
    <span class="bigger">1,031,782</span> users and counting trust Tweepi
    <br/><span class="bigger">828,796,639</span> tweeps un/followed
    <!-- time taken: 1.3113021850586E-5 -->
  </div>
  <div class="tweepi_sprite footer_line inline_block">
    <a href="http://thoughtpick.com/">another thoughtpick</a>  &mdash;
    <a href="/contact-us">contact us</a>  &mdash;
    <a href="/help">help</a>  </div>
</div>    <!-- BuySellAds.com Ad Code -->
<script type="text/javascript">
  $(window).load(function(){
    (function(){
      var bsa = document.createElement('script');
      bsa.type = 'text/javascript';
      bsa.async = true;
      bsa.src = '//s3.buysellads.com/ac/bsa.js';
      (document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(bsa);
    })();
  });
</script>
<!-- END BuySellAds.com Ad Code -->    
<!-- Total time taken for page 0.135s -->  </body>
</html> 

page source.

I have tried it but i keep failing

_FFFormRadioButton("2291037996",0,"account","form","switch_primary_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...