Advertisement
Guest User

Untitled

a guest
Feb 25th, 2020
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.98 KB | None | 0 0
  1. {
  2. "Name": "LHV Baltic Buyer Bot",
  3. "CreationDate": "2020-2-25",
  4. "Commands": [
  5. {
  6. "Command": "open",
  7. "Target": "https://www.nasdaqbaltic.com/statistics/et/shares",
  8. "Value": ""
  9. },
  10. {
  11. "Command": "storeText",
  12. "Target": "xpath=//table/tbody//tr[td//text()[contains(., 'APG1L')]]/td[6]",
  13. "Value": "APG1Lhighestbuy"
  14. },
  15. {
  16. "Command": "storeText",
  17. "Target": "xpath=//table/tbody//tr[td//text()[contains(., 'CPA1T')]]/td[6]",
  18. "Value": "CPA1Thighestbuy"
  19. },
  20. {
  21. "Command": "storeText",
  22. "Target": "xpath=//table/tbody//tr[td//text()[contains(., 'EFT1T')]]/td[6]",
  23. "Value": "EFT1Thighestbuy"
  24. },
  25. {
  26. "Command": "storeText",
  27. "Target": "xpath=//table/tbody//tr[td//text()[contains(., 'HAE1T')]]/td[6]",
  28. "Value": "HAE1Thighestbuy"
  29. },
  30. {
  31. "Command": "storeText",
  32. "Target": "xpath=//table/tbody//tr[td//text()[contains(., 'LHV1T')]]/td[6]",
  33. "Value": "LHV1Thighestbuy"
  34. },
  35. {
  36. "Command": "storeText",
  37. "Target": "xpath=//table/tbody//tr[td//text()[contains(., 'MRK1T')]]/td[6]",
  38. "Value": "MRK1Thighestbuy"
  39. },
  40. {
  41. "Command": "storeText",
  42. "Target": "xpath=//table/tbody//tr[td//text()[contains(., 'NCN1T')]]/td[6]",
  43. "Value": "NCN1Thighestbuy"
  44. },
  45. {
  46. "Command": "storeText",
  47. "Target": "xpath=//table/tbody//tr[td//text()[contains(., 'SAB1L')]]/td[6]",
  48. "Value": "SAB1Lhighestbuy"
  49. },
  50. {
  51. "Command": "storeText",
  52. "Target": "xpath=//table/tbody//tr[td//text()[contains(., 'SFG1T')]]/td[6]",
  53. "Value": "SFG1Thighestbuy"
  54. },
  55. {
  56. "Command": "storeText",
  57. "Target": "xpath=//table/tbody//tr[td//text()[contains(., 'TAL1T')]]/td[6]",
  58. "Value": "TAL1Thighestbuy"
  59. },
  60. {
  61. "Command": "storeText",
  62. "Target": "xpath=//table/tbody//tr[td//text()[contains(., 'TSM1T')]]/td[6]",
  63. "Value": "TSM1Thighestbuy"
  64. },
  65. {
  66. "Command": "storeText",
  67. "Target": "xpath=//table/tbody//tr[td//text()[contains(., 'TKM1T')]]/td[6]",
  68. "Value": "TKM1Thighestbuy"
  69. },
  70. {
  71. "Command": "storeText",
  72. "Target": "xpath=//table/tbody//tr[td//text()[contains(., 'TVEAT')]]/td[6]",
  73. "Value": "TVEAThighestbuy"
  74. },
  75. {
  76. "Command": "echo",
  77. "Target": "Apranga ${APG1Lhighestbuy} & Coop ${CPA1Thighestbuy} & Eften ${EFT1Thighestbuy} & Harju Elekter ${HAE1Thighestbuy} & LHV ${LHV1Thighestbuy} & Merko ${MRK1Thighestbuy} & Nordecon ${NCN1Thighestbuy} & Siauliai ${SAB1Lhighestbuy} & Silvano ${SFG1Thighestbuy} & Tallink ${TAL1Thighestbuy} & Sadam ${TSM1Thighestbuy} & Kaubamaja ${TKM1Thighestbuy} & TVEAT ${TVEAThighestbuy}",
  78. "Value": ""
  79. },
  80. {
  81. "Command": "open",
  82. "Target": "https://www.lhv.ee",
  83. "Value": ""
  84. },
  85. {
  86. "Command": "click",
  87. "Target": "linkText=Salasõna",
  88. "Value": ""
  89. },
  90. {
  91. "Command": "click",
  92. "Target": "id=login-nickname",
  93. "Value": ""
  94. },
  95. {
  96. "Command": "type",
  97. "Target": "id=login-nickname",
  98. "Value": "johannes.vahi"
  99. },
  100. {
  101. "Command": "clickAndWait",
  102. "Target": "id=login-submit",
  103. "Value": ""
  104. },
  105. {
  106. "Command": "click",
  107. "Target": "id=pwd",
  108. "Value": ""
  109. },
  110. {
  111. "Command": "type",
  112. "Target": "id=pwd",
  113. "Value": "BoTlOgIb1"
  114. },
  115. {
  116. "Command": "clickAndWait",
  117. "Target": "id=login_submit",
  118. "Value": ""
  119. },
  120. {
  121. "Command": "open",
  122. "Target": "https://www.lhv.ee/portfolio/view.cfm?vi=0",
  123. "Value": ""
  124. },
  125. {
  126. "Command": "clickAndWait",
  127. "Target": "xpath=//*[@id=\"menu_302\"]/a/span",
  128. "Value": ""
  129. },
  130. {
  131. "Command": "click",
  132. "Target": "id=i_shortname",
  133. "Value": ""
  134. },
  135. {
  136. "Command": "type",
  137. "Target": "id=i_shortname",
  138. "Value": "APG1L"
  139. },
  140. {
  141. "Command": "click",
  142. "Target": "id=i_quantity",
  143. "Value": ""
  144. },
  145. {
  146. "Command": "type",
  147. "Target": "id=i_quantity",
  148. "Value": "1"
  149. },
  150. {
  151. "Command": "type",
  152. "Target": "id=i_limit_market",
  153. "Value": "1"
  154. },
  155. {
  156. "Command": "click",
  157. "Target": "id=i_limit_market",
  158. "Value": ""
  159. },
  160. {
  161. "Command": "click",
  162. "Target": "id=i_limit_price1",
  163. "Value": ""
  164. },
  165. {
  166. "Command": "type",
  167. "Target": "id=i_limit_price1",
  168. "Value": "${APG1Lhighestbuy}"
  169. },
  170. {
  171. "Command": "click",
  172. "Target": "id=i_expires",
  173. "Value": ""
  174. },
  175. {
  176. "Command": "select",
  177. "Target": "id=i_expires",
  178. "Value": "label=tühistamiseni"
  179. },
  180. {
  181. "Command": "click",
  182. "Target": "id=i_expires",
  183. "Value": ""
  184. },
  185. {
  186. "Command": "clickAndWait",
  187. "Target": "xpath=//*[@id=\"vorm\"]/div[3]/span/button",
  188. "Value": ""
  189. }
  190. ]
  191. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement