selenium IDE
kabucom3 | ||
clickAndWait | link=買注文 | |
waitForElementPresent | name=Keyword | |
type | name=Keyword | 6961 |
clickAndWait | css=input[type="submit"] | |
type | id=InputBuyModel_Quantity_Value | 100 |
click | id=InputBuyModel_WebOrderType_Value_PMSASHINE | |
select | id=InputBuyModel_PlusMinusSashine_TriggerPriceSign_Value | label=- |
type | id=InputBuyModel_PlusMinusSashine_TriggerPriceRelative | 1 |
select | id=InputBuyModel_PlusMinusSashine_UnderOrOver_Value | label=以下 |
click | id=InputBuyModel_PlusMinusSashine_AfterHitFrontOrderType_Value | |
select | id=InputBuyModel_PlusMinusSashine_AfterHitPriceSign_Value | label=- |
type | id=InputBuyModel_PlusMinusSashine_AfterHitPriceRelative | 134 |
click | id=InputBuyModel_DelivType_Value_Oazukari |
selenium IDE なるものと firefox で webでの操作を記録できる
記録はhtml形式で↑のようなtableになっている
なので、発注内容を示すcsvファイルから↑のtableを含むhtmlを自動作成してこれをselenium IDEで読み込んで再生すると、一応自動操作で発注ができる
ちなみにawkとm4を使った