Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package amx.devs.ua;
- import org.junit.Test;
- import static com.codeborne.selenide.CollectionCondition.exactTexts;
- import static com.codeborne.selenide.Condition.text;
- import static com.codeborne.selenide.Condition.visible;
- import static com.codeborne.selenide.Selenide.*;
- public class AMXSmokeTest {
- @Test
- public void testCreateTask() {
- open("https://www.amexia-offshore.com/");
- //Write us a message
- $("#popup-message-call").click();
- $("#first-name").setValue("qatest");
- $("#your-email").setValue("qatester914@gmail.com");
- $("#your-phone").setValue("+380981556852");
- $("#your-message").setValue("qatest");
- $("#submit").click();
- $(".popup-close").click();
- //Need help?
- $(".floating-call-us.popup-callback-call").click();
- $("#wpcfx2-f986-o2").find("#first-name").setValue("qatest");
- $("#wpcfx2-f986-o2").find("#your-phone").setValue("+380981556852");
- $("#wpcfx2-f986-o2").find("#your-message").setValue("qatest");
- $("#wpcfx2-f986-o2").find("#submit").click();
- $("#popup-callback-form").find(".popup-close").click();
- //Download brochure
- $(".mobile.download_brochure_btn>p").click();
- $("#wpcfx2-f1343-o3").find("#first-name").setValue("qatest");
- $("#wpcfx2-f1343-o3").find("#your-email").setValue("qatester914@gmail.com");
- $("#wpcfx2-f1343-o3").find("#your-phone").setValue("+380981556852");
- $("#wpcfx2-f1343-o3").find("#submit").click();
- $("#popup_brochure_form").find(".popup-close").click();
- //Need help?
- $("#wpcfx2-f987-o4").$("#first-name").setValue("qatest");
- $("#wpcfx2-f987-o4").$("#your-email").setValue("qatester914@gmail.com");
- $("#wpcfx2-f987-o4").$("#your-phone").setValue("+380981556852");
- $("#wpcfx2-f987-o4").$("#your-message").setValue("qatest");
- $("#wpcfx2-f987-o4").$("#submit").click();
- $("#menu-item-1461>a").click();
- refresh();
- //Contact form
- $("#wpcfx2-f1330-o5").$("#first-name").setValue("qatest");
- $("#wpcfx2-f1330-o5").$("#your-email").setValue("qatester914@gmail.com");
- $("#wpcfx2-f1330-o5").$("#your-phone").setValue("+380981556852");
- $("#wpcfx2-f1330-o5").$("#your-message").setValue("qatest");
- $("#wpcfx2-f1330-o5").$("#submit").click();
- refresh();
- //jurisdiction
- $("#menu-item-1514>a").click();
- $("#menu-item-142>a").click();
- $(".button.quick-checkout-button.quick-checkout-button-shortcode").click();
- refresh();
- open("https://www.amexia-offshore.com/checkout/?qc_loader=true&quantity=1&checkout_action=lightbox&clear_cart=true&product_id=997");
- $("#billing_first_name").setValue("qatest");
- $("#billing_last_name").setValue("qatest");
- $("#billing_company").setValue("qatest");
- $("#billing_email").setValue("qatester914@gmail.com");
- $("#billing_phone").setValue("380981556858");
- $("#billing_country").doubleClick();
- $("#billing_address_1").setValue("qatest");
- $("#billing_address_2").setValue("qatest");
- $("#billing_city").setValue("qatest");
- $("#billing_state").setValue("qatest");
- $("#billing_postcode").setValue("qatest");
- $("#order_comments").setValue("2");
- // $("#wc_checkout_add_ons_2").click();
- // $("#wc_checkout_add_ons_12").doubleClick();
- $("#place_order").click();
- open("https://www.amexia-offshore.fr/");
- //Write us a message
- $("#popup-message-call").click();
- $("#first-name").setValue("qatest");
- $("#your-email").setValue("qatester914@gmail.com");
- $("#your-phone").setValue("+380981556852");
- $("#your-message").setValue("qatest");
- $("#submit").click();
- $(".popup-close").click();
- //Need help?
- $(".floating-call-us.popup-callback-call").click();
- $("#wpcfx2-f1037-o2").find("#first-name").setValue("qatest");
- $("#wpcfx2-f1037-o2").find("#your-phone").setValue("+380981556852");
- $("#wpcfx2-f1037-o2").find("#your-message").setValue("qatest");
- $("#wpcfx2-f1037-o2").find("#submit").click();
- $("#popup-callback-form").find(".popup-close").click();
- //Download brochure
- $(".mobile.download_brochure_btn>p").click();
- $("#wpcfx2-f1605-o3").find("#first-name").setValue("qatest");
- $("#wpcfx2-f1605-o3").find("#your-email").setValue("qatester914@gmail.com");
- $("#wpcfx2-f1605-o3").find("#your-phone").setValue("+380981556852");
- $("#wpcfx2-f1605-o3").find("#submit").click();
- $("#popup_brochure_form").find(".popup-close").click();
- //Need help?
- $("#wpcfx2-f1038-o4").$("#first-name").setValue("qatest");
- $("#wpcfx2-f1038-o4").$("#your-email").setValue("qatester914@gmail.com");
- $("#wpcfx2-f1038-o4").$("#your-phone").setValue("+380981556852");
- $("#wpcfx2-f1038-o4").$("#your-message").setValue("qatest");
- $("#wpcfx2-f1038-o4").$("#submit").click();
- $("#menu-item-1842>a").click();
- refresh();
- //Contact form
- $("#wpcfx2-f1595-o5").$("#first-name").setValue("qatest");
- $("#wpcfx2-f1595-o5").$("#your-email").setValue("qatester914@gmail.com");
- $("#wpcfx2-f1595-o5").$("#your-phone").setValue("+380981556852");
- $("#wpcfx2-f1595-o5").$("#your-message").setValue("qatest");
- $("#wpcfx2-f1595-o5").$("#submit").click();
- refresh();
- //jurisdiction
- $("#menu-item-1690>a").click();
- $("#menu-item-142>a").click();
- $(".button.quick-checkout-button.quick-checkout-button-shortcode").click();
- refresh();
- open("https://www.amexia-offshore.fr/checkout/?qc_loader=true&quantity=1&checkout_action=lightbox&clear_cart=true&product_id=1094");
- $("#billing_first_name").setValue("qatest");
- $("#billing_last_name").setValue("qatest");
- $("#billing_company").setValue("qatest");
- $("#billing_email").setValue("qatester914@gmail.com");
- $("#billing_phone").setValue("380981556858");
- $("#billing_country").doubleClick();
- $("#billing_address_1").setValue("qatest");
- $("#billing_address_2").setValue("qatest");
- $("#billing_city").setValue("qatest");
- $("#billing_state").setValue("qatest");
- $("#billing_postcode").setValue("qatest");
- $("#order_comments").setValue("1");
- // $("#wc_checkout_add_ons_2").click();
- // $("#wc_checkout_add_ons_12").doubleClick();
- $("#place_order").click();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement