jacob_1998_1999 Posted March 2, 2007 Posted March 2, 2007 <form name="transact" action="/transaction.php" method="post"> <td> <input type="hidden" value="3067" name="id"> <input type="hidden" value="/view.php?id=3067" name="uri"> <input type="submit" name="submit" value="buy" class="submit"> </td> </form> How would I get this to work? I've tried the following: _IENavigate($oIE,"www.blah.net/view.php?id=3067") _IELoadWait($oIE) $oForm = _IEFormGetObjByname($oIE,"transact") $obutton = _IEFormGetObjByName($oForm, "buy") $obutton.click() _IELoadWait($oIE) However, the obutton says it needs an object. (P.S.- the page has several forms on the page. I have also tried using the _IEFormSubmit() ) once that has taken place, I need to switch profiles to john. <form method="post" style="display:inline;"> <select name="id"> <option value="329" SELECTED>Jacob</option> <option value="1252" >John</option> </select> <input type=submit value="switch profile" class="submit" name="submit"> </form> And I'm not even sure how to attempt that. Any help would be much appreciated.
lod3n Posted March 2, 2007 Posted March 2, 2007 That's because the buttons name is "submit", not "buy". "buy" is the value. [font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font]
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