Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
584
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.36 KB | None | 0 0
  1. package ft.devs.ua;
  2.  
  3. import org.junit.Test;
  4.  
  5. import static com.codeborne.selenide.Selenide.*;
  6.  
  7.  
  8. public class FTSmokeTest {
  9.  
  10. @Test
  11. public void testCreateTask() {
  12. open("https://www.fiduciaritrust.com");
  13.  
  14.  
  15. sleep(5000);
  16. //Brochure
  17. $(".btn.js-download").click();
  18. $("#popup-broshure1").$("#first-name").setValue("qatest");
  19. $("#popup-broshure1").$("#your-email").setValue("qatester914@gmail.com");;
  20. $("#popup-broshure1").$("#your-phone").setValue("+380981556855");
  21.  
  22. $("#popup-broshure1").$("#submit").click();
  23. $(".btn--close.js-close").click();
  24.  
  25.  
  26. //Contact form
  27. $("#menu-item-104>a").click();
  28. $("#wpcfx2-f1720-p102-o3").$("#first-name").setValue("qatest");
  29. $("#wpcfx2-f1720-p102-o3").$("#your-email").setValue("qatester914@gmail.com");
  30. $("#wpcfx2-f1720-p102-o3").$("#your-phone").setValue("+380981556858");
  31. $("#wpcfx2-f1720-p102-o3").$("#your-message").setValue("qatest");
  32.  
  33. $("#wpcfx2-f1720-p102-o3").$("#submit").doubleClick();
  34.  
  35. //UK jurisdiction
  36. $("#menu-item-416>a").click();
  37. $("#show-checkout-button").click();
  38.  
  39. $("#checkout").$("#billing_first_name").setValue("qatest");
  40. $("#checkout").$("#billing_last_name").setValue("380981556858");
  41. $("#checkout").$("#billing_company").setValue("380981556858");
  42. $("#checkout").$("#billing_email").setValue("qatester914@gmail.com");
  43. $("#checkout").$("#billing_phone").setValue("+380981556858");
  44. //$("#checkout").$(".select2-choice").doubleClick();
  45. $("#checkout").$("#billing_address_1").setValue("qatest");
  46. $("#checkout").$("#billing_postcode").setValue("4545");
  47. $("#checkout").$("#billing_city").setValue("qatest");
  48. $("#checkout").$("#order_comments").setValue("qatest");
  49. $("#agbtext").$("#agb_confirm").click();
  50.  
  51. sleep(3000);
  52.  
  53. $("#agbtext").$("#agb_confirm").click();
  54. $("#checkout").$("#place_order").click();
  55.  
  56. }
  57.  
  58. @Test
  59. public void notarisationTest() {
  60. //Notarisation et apostille
  61. open("https://www.fiduciaritrust.com/notarisation-et-apostille/");
  62.  
  63. $(".btn").$("#show-checkout-button").click();
  64. $("#checkout").$("#billing_first_name").setValue("qatest");
  65. $("#checkout").$("#billing_last_name").setValue("380981556858");
  66. $("#checkout").$("#billing_company").setValue("380981556858");
  67. $("#checkout").$("#billing_email").setValue("qatester914@gmail.com");
  68. $("#checkout").$("#billing_phone").setValue("+380981556858");
  69. //$("#checkout").$(".select2-choice").doubleClick();
  70. $("#checkout").$("#billing_address_1").setValue("qatest");
  71. $("#checkout").$("#billing_postcode").setValue("4545");
  72. $("#checkout").$("#billing_city").setValue("qatest");
  73. $("#checkout").$("#order_comments").setValue("qatest");
  74. $("#agbtext").$("#agb_confirm").click();
  75.  
  76. sleep(3000);
  77.  
  78. $("#agbtext").$("#agb_confirm").click();
  79. $("#checkout").$("#place_order").click();
  80.  
  81. }
  82. @Test
  83. public void obtentionTest() {
  84. //Obtention d’un numéro de TVA
  85. open("https://www.fiduciaritrust.com/obtention-dun-numero-de-tva/");
  86.  
  87. $(".btn").$("#show-checkout-button").click();
  88. $("#checkout").$("#billing_first_name").setValue("qatest");
  89. $("#checkout").$("#billing_last_name").setValue("380981556858");
  90. $("#checkout").$("#billing_company").setValue("380981556858");
  91. $("#checkout").$("#billing_email").setValue("qatester914@gmail.com");
  92. $("#checkout").$("#billing_phone").setValue("+380981556858");
  93. //$("#checkout").$(".select2-choice").doubleClick();
  94. $("#checkout").$("#billing_address_1").setValue("qatest");
  95. $("#checkout").$("#billing_postcode").setValue("4545");
  96. $("#checkout").$("#billing_city").setValue("qatest");
  97. $("#checkout").$("#order_comments").setValue("qatest");
  98. $("#agbtext").$("#agb_confirm").click();
  99.  
  100. sleep(3000);
  101.  
  102. $("#agbtext").$("#agb_confirm").click();
  103. $("#checkout").$("#place_order").click();
  104. }
  105.  
  106.  
  107.  
  108. public void directurTest() {
  109. //Directeur nominé
  110. open("https://www.fiduciaritrust.com/directeur-nomine/");
  111.  
  112. $(".btn").$("#show-checkout-button").click();
  113. $("#checkout").$("#billing_first_name").setValue("qatest");
  114. $("#checkout").$("#billing_last_name").setValue("380981556858");
  115. $("#checkout").$("#billing_company").setValue("380981556858");
  116. $("#checkout").$("#billing_email").setValue("qatester914@gmail.com");
  117. $("#checkout").$("#billing_phone").setValue("+380981556858");
  118. //$("#checkout").$(".select2-choice").doubleClick();
  119. $("#checkout").$("#billing_address_1").setValue("qatest");
  120. $("#checkout").$("#billing_postcode").setValue("4545");
  121. $("#checkout").$("#billing_city").setValue("qatest");
  122. $("#checkout").$("#order_comments").setValue("qatest");
  123. $("#agbtext").$("#agb_confirm").click();
  124.  
  125. sleep(3000);
  126.  
  127. $("#agbtext").$("#agb_confirm").click();
  128. $("#checkout").$("#place_order").click();
  129. }
  130. @Test
  131. public void actionnaireTest() {
  132. //Actionnaire nominé
  133. open("https://www.fiduciaritrust.com/actionnaire-nomine/");
  134.  
  135. $(".btn").$("#show-checkout-button").click();
  136. $("#checkout").$("#billing_first_name").setValue("qatest");
  137. $("#checkout").$("#billing_last_name").setValue("380981556858");
  138. $("#checkout").$("#billing_company").setValue("380981556858");
  139. $("#checkout").$("#billing_email").setValue("qatester914@gmail.com");
  140. $("#checkout").$("#billing_phone").setValue("+380981556858");
  141. //$("#checkout").$(".select2-choice").doubleClick();
  142. $("#checkout").$("#billing_address_1").setValue("qatest");
  143. $("#checkout").$("#billing_postcode").setValue("4545");
  144. $("#checkout").$("#billing_city").setValue("qatest");
  145. $("#checkout").$("#order_comments").setValue("qatest");
  146. $("#agbtext").$("#agb_confirm").click();
  147.  
  148. sleep(3000);
  149.  
  150. $("#agbtext").$("#agb_confirm").click();
  151. $("#checkout").$("#place_order").click();
  152. }
  153. @Test
  154. public void poverTest() {
  155. //Power of attorney
  156. open("https://www.fiduciaritrust.com/procuration-au-representant-legal-power-attorney/");
  157.  
  158. $(".btn").$("#show-checkout-button").click();
  159. $("#checkout").$("#billing_first_name").setValue("qatest");
  160. $("#checkout").$("#billing_last_name").setValue("380981556858");
  161. $("#checkout").$("#billing_company").setValue("380981556858");
  162. $("#checkout").$("#billing_email").setValue("qatester914@gmail.com");
  163. $("#checkout").$("#billing_phone").setValue("+380981556858");
  164. //$("#checkout").$(".select2-choice").doubleClick();
  165. $("#checkout").$("#billing_address_1").setValue("qatest");
  166. $("#checkout").$("#billing_postcode").setValue("4545");
  167. $("#checkout").$("#billing_city").setValue("qatest");
  168. $("#checkout").$("#order_comments").setValue("qatest");
  169. $("#agbtext").$("#agb_confirm").click();
  170.  
  171. sleep(3000);
  172.  
  173. $("#agbtext").$("#agb_confirm").click();
  174. $("#checkout").$("#place_order").click();
  175. }
  176.  
  177. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement