Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package ft.devs.ua;
- import org.junit.Test;
- import static com.codeborne.selenide.Selenide.*;
- public class FTSmokeTest {
- @Test
- public void testCreateTask() {
- open("https://www.fiduciaritrust.com");
- sleep(5000);
- //Brochure
- $(".btn.js-download").click();
- $("#popup-broshure1").$("#first-name").setValue("qatest");
- $("#popup-broshure1").$("#your-email").setValue("qatester914@gmail.com");;
- $("#popup-broshure1").$("#your-phone").setValue("+380981556855");
- $("#popup-broshure1").$("#submit").click();
- $(".btn--close.js-close").click();
- //Contact form
- $("#menu-item-104>a").click();
- $("#wpcfx2-f1720-p102-o3").$("#first-name").setValue("qatest");
- $("#wpcfx2-f1720-p102-o3").$("#your-email").setValue("qatester914@gmail.com");
- $("#wpcfx2-f1720-p102-o3").$("#your-phone").setValue("+380981556858");
- $("#wpcfx2-f1720-p102-o3").$("#your-message").setValue("qatest");
- $("#wpcfx2-f1720-p102-o3").$("#submit").doubleClick();
- //UK jurisdiction
- $("#menu-item-416>a").click();
- $("#show-checkout-button").click();
- $("#checkout").$("#billing_first_name").setValue("qatest");
- $("#checkout").$("#billing_last_name").setValue("380981556858");
- $("#checkout").$("#billing_company").setValue("380981556858");
- $("#checkout").$("#billing_email").setValue("qatester914@gmail.com");
- $("#checkout").$("#billing_phone").setValue("+380981556858");
- //$("#checkout").$(".select2-choice").doubleClick();
- $("#checkout").$("#billing_address_1").setValue("qatest");
- $("#checkout").$("#billing_postcode").setValue("4545");
- $("#checkout").$("#billing_city").setValue("qatest");
- $("#checkout").$("#order_comments").setValue("qatest");
- $("#agbtext").$("#agb_confirm").click();
- sleep(3000);
- $("#agbtext").$("#agb_confirm").click();
- $("#checkout").$("#place_order").click();
- }
- @Test
- public void notarisationTest() {
- //Notarisation et apostille
- open("https://www.fiduciaritrust.com/notarisation-et-apostille/");
- $(".btn").$("#show-checkout-button").click();
- $("#checkout").$("#billing_first_name").setValue("qatest");
- $("#checkout").$("#billing_last_name").setValue("380981556858");
- $("#checkout").$("#billing_company").setValue("380981556858");
- $("#checkout").$("#billing_email").setValue("qatester914@gmail.com");
- $("#checkout").$("#billing_phone").setValue("+380981556858");
- //$("#checkout").$(".select2-choice").doubleClick();
- $("#checkout").$("#billing_address_1").setValue("qatest");
- $("#checkout").$("#billing_postcode").setValue("4545");
- $("#checkout").$("#billing_city").setValue("qatest");
- $("#checkout").$("#order_comments").setValue("qatest");
- $("#agbtext").$("#agb_confirm").click();
- sleep(3000);
- $("#agbtext").$("#agb_confirm").click();
- $("#checkout").$("#place_order").click();
- }
- @Test
- public void obtentionTest() {
- //Obtention d’un numéro de TVA
- open("https://www.fiduciaritrust.com/obtention-dun-numero-de-tva/");
- $(".btn").$("#show-checkout-button").click();
- $("#checkout").$("#billing_first_name").setValue("qatest");
- $("#checkout").$("#billing_last_name").setValue("380981556858");
- $("#checkout").$("#billing_company").setValue("380981556858");
- $("#checkout").$("#billing_email").setValue("qatester914@gmail.com");
- $("#checkout").$("#billing_phone").setValue("+380981556858");
- //$("#checkout").$(".select2-choice").doubleClick();
- $("#checkout").$("#billing_address_1").setValue("qatest");
- $("#checkout").$("#billing_postcode").setValue("4545");
- $("#checkout").$("#billing_city").setValue("qatest");
- $("#checkout").$("#order_comments").setValue("qatest");
- $("#agbtext").$("#agb_confirm").click();
- sleep(3000);
- $("#agbtext").$("#agb_confirm").click();
- $("#checkout").$("#place_order").click();
- }
- public void directurTest() {
- //Directeur nominé
- open("https://www.fiduciaritrust.com/directeur-nomine/");
- $(".btn").$("#show-checkout-button").click();
- $("#checkout").$("#billing_first_name").setValue("qatest");
- $("#checkout").$("#billing_last_name").setValue("380981556858");
- $("#checkout").$("#billing_company").setValue("380981556858");
- $("#checkout").$("#billing_email").setValue("qatester914@gmail.com");
- $("#checkout").$("#billing_phone").setValue("+380981556858");
- //$("#checkout").$(".select2-choice").doubleClick();
- $("#checkout").$("#billing_address_1").setValue("qatest");
- $("#checkout").$("#billing_postcode").setValue("4545");
- $("#checkout").$("#billing_city").setValue("qatest");
- $("#checkout").$("#order_comments").setValue("qatest");
- $("#agbtext").$("#agb_confirm").click();
- sleep(3000);
- $("#agbtext").$("#agb_confirm").click();
- $("#checkout").$("#place_order").click();
- }
- @Test
- public void actionnaireTest() {
- //Actionnaire nominé
- open("https://www.fiduciaritrust.com/actionnaire-nomine/");
- $(".btn").$("#show-checkout-button").click();
- $("#checkout").$("#billing_first_name").setValue("qatest");
- $("#checkout").$("#billing_last_name").setValue("380981556858");
- $("#checkout").$("#billing_company").setValue("380981556858");
- $("#checkout").$("#billing_email").setValue("qatester914@gmail.com");
- $("#checkout").$("#billing_phone").setValue("+380981556858");
- //$("#checkout").$(".select2-choice").doubleClick();
- $("#checkout").$("#billing_address_1").setValue("qatest");
- $("#checkout").$("#billing_postcode").setValue("4545");
- $("#checkout").$("#billing_city").setValue("qatest");
- $("#checkout").$("#order_comments").setValue("qatest");
- $("#agbtext").$("#agb_confirm").click();
- sleep(3000);
- $("#agbtext").$("#agb_confirm").click();
- $("#checkout").$("#place_order").click();
- }
- @Test
- public void poverTest() {
- //Power of attorney
- open("https://www.fiduciaritrust.com/procuration-au-representant-legal-power-attorney/");
- $(".btn").$("#show-checkout-button").click();
- $("#checkout").$("#billing_first_name").setValue("qatest");
- $("#checkout").$("#billing_last_name").setValue("380981556858");
- $("#checkout").$("#billing_company").setValue("380981556858");
- $("#checkout").$("#billing_email").setValue("qatester914@gmail.com");
- $("#checkout").$("#billing_phone").setValue("+380981556858");
- //$("#checkout").$(".select2-choice").doubleClick();
- $("#checkout").$("#billing_address_1").setValue("qatest");
- $("#checkout").$("#billing_postcode").setValue("4545");
- $("#checkout").$("#billing_city").setValue("qatest");
- $("#checkout").$("#order_comments").setValue("qatest");
- $("#agbtext").$("#agb_confirm").click();
- sleep(3000);
- $("#agbtext").$("#agb_confirm").click();
- $("#checkout").$("#place_order").click();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement