Jump to content

KenTurner

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by KenTurner

  1. I'm using FF.au3 (and AutoIt) for the first time, and need some help here, please. I'm using AutoIt v3.2.12.1, FF.au3 v0.2.4.0beta, SciTE v1.76, MozRepl 2008 10 12 19 and FireFox 3.0.3, on WinXP Pro Sp3. So far I've got this: #include <FF.au3> $Socket = _FFStart("http://privilege.ftlatest.com","default",2) _FFSetValueByName($Socket, "ucpnlHeader:LoginHeader_ctl1:txtCPN", "12345") _FFSetValueByName($Socket, "ucpnlHeader:LoginHeader_ctl1:txtPostCode", "aa9 5bb") _FFClickImage($Socket,"ucpnlHeader:LoginHeader_ctl1:btnSubmit","name") The last few lines of the SciTE log look like this: I tried using the FF Page Analyzer, but couldn't find the login button on my web page. I therefore looked directly at the page source from the page http://privilege.ftlatest.com/home.aspx?id_content=1, and found this line: <input type="image" name="ucpnlHeader:LoginHeader_ctl1:btnSubmit" onclick="if (typeof(Page_ClientValidate) == 'function') Page_ClientValidate(); " id="ucpnlHeader_LoginHeader_ctl1_btnSubmit" class="btn" src="/images/btn-login.gif" alt="" border="0" /><BR> so I used the value of the name property in my _FFClickImage statement. The two _FFSetValueByName lines appear to be working perfectly, but what is wrong with the _FFClickImage statement?
×
×
  • Create New...