Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
588
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.48 KB | None | 0 0
  1. package fs.devs.ua;
  2.  
  3. import org.junit.Test;
  4. import org.openqa.selenium.By;
  5.  
  6. import static com.codeborne.selenide.Selenide.$;
  7. import static com.codeborne.selenide.Selenide.open;
  8. import static com.codeborne.selenide.Selenide.sleep;
  9.  
  10.  
  11. public class FSSmokeTest {
  12. @Test
  13. public void testUkBrochure() {
  14. open("https://www.fidusuisse-offshore.com/");
  15.  
  16. sleep(3000);
  17. $("#popmake-21403").$(".pum-close.popmake-close.btn.btn-success").click();
  18.  
  19. sleep(2000);
  20. $(".oneitem.rappel>a").click();
  21. $("#wpcfx2-f21581-o1").$("#first-name").setValue("qatest");
  22. $("#wpcfx2-f21581-o1").$("#last-name").setValue("qatest");
  23. $("#wpcfx2-f21581-o1").$("#your-phone").setValue("+380981556858");
  24.  
  25. $("#wpcfx2-f21581-o1").$("#submit").click();
  26.  
  27.  
  28. sleep(5000);
  29.  
  30. $("#content_right").$(".bouton-merci").click();
  31.  
  32. sleep(3000);
  33.  
  34. $(".oneitem.contact").click();
  35.  
  36. $("#wpcfx2-f21565-p22765-o1").$("#first-name").setValue("qatest");
  37. $("#wpcfx2-f21565-p22765-o1").$("#last-name").setValue("qatest");
  38. $("#wpcfx2-f21565-p22765-o1").$("#your-email").setValue("qatester914@gmail.com");
  39. $("#wpcfx2-f21565-p22765-o1").$("#your-phone").setValue("+380981556858");
  40. $("#wpcfx2-f21565-p22765-o1").$("#your-message").setValue("qatest");
  41.  
  42. $("#wpcfx2-f21565-p22765-o1").$("#submit").click();
  43.  
  44. sleep(3000);
  45.  
  46. $("#content_right").$(".bouton-merci").click();
  47.  
  48. sleep(3000);
  49.  
  50. $(".oneitem.faq").click();
  51.  
  52. sleep(3000);
  53.  
  54. $("#wpcfx2-f21567-o1").$("#first-name").setValue("qatest");
  55. $("#wpcfx2-f21567-o1").$("#last-name").setValue("qatest");
  56. $("#wpcfx2-f21567-o1").$("#your-email").setValue("qatester914@gmail.com");
  57. $("#wpcfx2-f21567-o1").$("#your-phone").setValue("+380981556858");
  58. $("#wpcfx2-f21567-o1").$("#your-message").setValue("qatest");
  59.  
  60. $("#wpcfx2-f21567-o1").$("#submit").click();
  61.  
  62. sleep(4000);
  63.  
  64. $("#content_right").$(".bouton-merci").click();
  65.  
  66. }
  67.  
  68. @Test
  69. public void HongKongContactForm() {
  70.  
  71. open("https://www.fidusuisse-offshore.com/creation-societe/hong-kong/");
  72.  
  73. sleep(3000);
  74.  
  75. $("#popmake-21403").$(".pum-close.popmake-close.btn.btn-success").click();
  76.  
  77. sleep(4000);
  78.  
  79. $("#wpcfx2-f21567-p22755-o1").$("#first-name").setValue("qatest");
  80. $("#wpcfx2-f21567-p22755-o1").$("#last-name").setValue("qatest");
  81. $("#wpcfx2-f21567-p22755-o1").$("#your-email").setValue("qatester914@gmail.com");
  82. $("#wpcfx2-f21567-p22755-o1").$("#your-phone").setValue("+380981556858");
  83. $("#wpcfx2-f21567-p22755-o1").$("#your-message").setValue("qatest");
  84.  
  85. $("#wpcfx2-f21567-p22755-o1").$("#submit").click();
  86.  
  87. sleep(4000);
  88.  
  89. $("#content_right").$(".bouton-merci").click();
  90. }
  91. @Test
  92. public void compteBamcaireContactForm() {
  93.  
  94. open("https://www.fidusuisse-offshore.com/compte-bancaire/");
  95.  
  96. sleep(3000);
  97.  
  98. $("#popmake-21403").$(".pum-close.popmake-close.btn.btn-success").click();
  99.  
  100. sleep(4000);
  101.  
  102. $("#wpcfx2-f21567-o1").$("#first-name").setValue("qatest");
  103. $("#wpcfx2-f21567-o1").$("#last-name").setValue("qatest");
  104. $("#wpcfx2-f21567-o1").$("#your-email").setValue("qatester914@gmail.com");
  105. $("#wpcfx2-f21567-o1").$("#your-phone").setValue("+380981556858");
  106. $("#wpcfx2-f21567-o1").$("#your-message").setValue("qatest");
  107.  
  108. $("#wpcfx2-f21567-o1").$("#submit").click();
  109.  
  110. sleep(4000);
  111.  
  112. $("#content_right").$(".bouton-merci").click();
  113. }
  114. @Test
  115. public void nosServicesContactForm() {
  116.  
  117. open("https://www.fidusuisse-offshore.com/nos-services/");
  118.  
  119. sleep(3000);
  120.  
  121. $("#popmake-21403").$(".pum-close.popmake-close.btn.btn-success").click();
  122.  
  123. sleep(4000);
  124.  
  125. $("#wpcfx2-f21567-o1").$("#first-name").setValue("qatest");
  126. $("#wpcfx2-f21567-o1").$("#last-name").setValue("qatest");
  127. $("#wpcfx2-f21567-o1").$("#your-email").setValue("qatester914@gmail.com");
  128. $("#wpcfx2-f21567-o1").$("#your-phone").setValue("+380981556858");
  129. $("#wpcfx2-f21567-o1").$("#your-message").setValue("qatest");
  130.  
  131. $("#wpcfx2-f21567-o1").$("#submit").click();
  132.  
  133. sleep(4000);
  134.  
  135. $("#content_right").$(".bouton-merci").click();
  136. }
  137.  
  138. @Test
  139. public void readyMadeContactForm() {
  140.  
  141. open("https://www.fidusuisse-offshore.com/ready-made-company/");
  142.  
  143. sleep(2000);
  144. $("#post-22394").$(".table-cell._checkbox>input").click();
  145. $("#post-22394").$(".button.js-getReadyMadeCompanies-btn").click();
  146.  
  147. sleep(15000);
  148.  
  149. $("#billing_first_name").setValue("qatest");
  150. $("#customer_details").$("#billing_last_name").setValue("qatest");
  151. $("#customer_details").$("#billing_address_1").setValue("qatest");
  152. $("#customer_details").$("#billing_city").setValue("qatest");
  153. $("#customer_details").$("#billing_postcode").setValue("4141");
  154. $("#customer_details").$("#billing_email").setValue("qatester914@gmail.com");
  155. $("#customer_details").$("#billing_phone").setValue("+380671739752");
  156. $("#payment").$("#terms").click();
  157. $("#payment").$("#place_order").click();
  158.  
  159. $("#wpcfx2-f21567-o1").$("#submit").click();
  160.  
  161. sleep(4000);
  162.  
  163. $("#content_right").$(".bouton-merci").click();
  164. }
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement