Cancelado

Automatic button click

I have a program thats 99% done, except for one button click. Its written in Python/COM Interface so you have to use one of those languages.

This program was created to auto buy certain items from amazon.com. [url removed, login to view] displays a warning when you try to place a duplicate order and we need to click the "place duplicate order" button. The problem is that the same code that was working for all the other amazon buttons, does not work on this page, and instead sends you back to the page you were viewing before (the place your order page)

This code does NOT work for some reason

for creating internet explorer object

ie=[url removed, login to view]('[url removed, login to view]')

find button and execute "click"

[url removed, login to view] ('forcePlaceOrder')[0].click()

Programming language "Python" but it doesn't metter. (it's just COM interface)

Here is part of the HTML from the duplicate order page

<form method="POST" action="/gp/checkout/duplicate-order/select.html/102-9927819-2125755" onSubmit="return(doubleClickPrevention_onSubmit());" >

<input type="hidden" name="purchaseTotal" value="18.36" / >

<input type="hidden" name="purchaseTotalCurrency" value="USD" / >

<tr><td><b>Please choose one:</b></td></tr>

<tr><td align="center"><input type="image" src="https://images-na.ssl-images-amazon.com/images/G/01/x-locale/checkout/duplicate-order/place-this-duplicate-order.gif" width="225" align="absmiddle" alt="Place your order" value="Place Your Order" name="forcePlaceOrder" height="25" border="0" /></td></tr>

<tr><td align="center" class="tiny">or</td></tr>

<tr><td align="center">

<input type="image" src="https://images-na.ssl-images-amazon.com/images/G/01/x-locale/checkout/duplicate-order/cancel-this-duplicate-order.gif" width="225" align="absmiddle" alt="Cancel this duplicate order" value="Cancel this duplicate order" name="cancelOrder" height="25" border="0" />

</td></tr>

<tr><td align="center" class="tiny">(Your original order will still be shipped; we'll take you to Your Account to view your order history)</td></tr>

</form>

You need to find a way to click the forceplaceorder button.

Someone else has the same problem and the discussion can be found here

[url removed, login to view];SiteID=1

Habilidades: Python, Área de trabalho do Windows

Ver mais: automatic button click, python button click, internetexplorer automatic python, automatic click button, click button python, automatic button click python, x place com, windows programming language, src program, python programming class, python find, python button, programming languages history, programming language history, programming gif, programming forums, programming center, post dispatch, original client, need a python code that does, microsoft programming language, its-dispatch, internet programming languages, html programming language, history of programming languages

Acerca do Empregador:
( 0 comentários ) Jackson Hole, United States

ID do Projeto: #154984