public static void KampanyaGonderimiSms(String castType,
			String companyName, String operatorName)
			throws InterruptedException, IOException {
		try {
			if (castType == "Single Send")
				log.info("SendCampaignSms (Single) Started");
			else
				log.info("SendCampaignSms (Multi) Started");
			String alert1Text = null, alert2Text = null;
			long unixTime = System.currentTimeMillis() / 1000L;
			driver.get("http://testsmsgateway.tani.com.tr:8080/campaign/campaign/sms/new");
			WebElement campaignName = searchElement(driver, "#campaignName");
			campaignName.sendKeys("Kampanya " + unixTime);
			WebElement sendSelect = searchElement(driver, "#castType");
			sendSelect.click();
			sendSelect.sendKeys(castType);
			sendSelect.sendKeys(Keys.RETURN);// gönderim kurgusu seçildi✓
			// --------------Operatör Seçimi-----------------------
			WebElement operatorSelect = searchElement(driver, "#operator");
			operatorSelect.click();
			operatorSelect.sendKeys(operatorName);
			operatorSelect.sendKeys(Keys.RETURN);// operator seçildi✓
			// ----------------------------------------------------
			WebElement mechanismText = searchElement(driver, "#mechanism");
			mechanismText.sendKeys("Test");// mekanizm metin alanına metin
											// girişi yapıldı✓
			WebElement selectCompany = searchElement(driver, "#s2id_autogen1");
			selectCompany.click();
			selectCompany.sendKeys(companyName);
			selectCompany.sendKeys(Keys.RETURN);// işyeri seçiliyor✓
			// -----------------------------------------------------------------------
			driver.switchTo().frame("smsCampaignMessage_ifr");
			WebElement messageContent = searchElement(driver, "#tinymce");
			messageContent.sendKeys("Mesaj icerigi"); // mesaj içeriği
														// giriliyor✓
			driver.switchTo().defaultContent();
			WebElement targetSelect = searchElement(driver,
					"#s2id_smsCampaignTestTargetList>a>.select2-chosen");
			targetSelect.click();
			targetSelect.sendKeys(Keys.ARROW_DOWN);
			targetSelect.sendKeys(Keys.RETURN); // target list seçiliyor ✓
			// -------------------------------------------------------------------------
			WebElement titleSelect = searchElement(driver,
					" #s2id_smsCampaignPrefix>a>.select2-chosen");
			titleSelect.click();
			titleSelect.sendKeys(Keys.RETURN); // başlık seçiliyor ✓
			// Kampanya Kaydet Kontrolü//
			WebElement saveButton = searchElement(driver,
					".btn.btn-lg.blue.campaignSave");
			saveButton.click();
			boolean saveSuccess = true;
			try {
				boolean searchError = searchElement(driver, ".preserve-newline") == null;
				while (searchError) {
					WebElement alert1 = searchElement(driver,
							".preserve-newline.margin-bottom-5.alert.alert-success");
					alert1Text = alert1.getText();
					saveSuccess = true;
					searchError = searchElement(driver, ".preserve-newline") == null;
				}
			} catch (NoSuchElementException e) {
				saveSuccess = false;
				screenShot("SaveCampaignSms(" + castType + ")");
			}
			if (saveSuccess == true) {
				WebElement sendTest = searchElement(driver,
						".btn.btn-lg.green.campaignSend");
				sendTest.click();
				WebElement alert2 = searchElement(driver,
						".preserve-newline.margin-bottom-5.alert.alert-success");
				alert2Text = alert2.getText();
				if (alert1Text != alert2Text) {
					log.info("Test Send Succeed");
					dizi[k][k] = "Campaign Test Send Sms (" + castType + ")";
					dizi[k][k + 1] = "Pass";
					k++;
					log.info("Real Send Starting...");
					WebElement acceptSend = driver.findElement(By
							.cssSelector(".campaignTestApprove.uniform"));
					acceptSend.click();
					WebElement realTargetSelect = searchElement(driver,
							"#s2id_smsCampaignRealTargetList>a>.select2-chosen");
					realTargetSelect.click();
					realTargetSelect.sendKeys(Keys.ARROW_DOWN);
					realTargetSelect.sendKeys(Keys.RETURN);
					WebElement realSendButton = searchElement(driver,
							".btn.btn-lg.green.campaignSend");
					realSendButton.click();
					String url = "http://testsmsgateway.tani.com.tr:8080/campaign/campaign/search?message=SMS%20Kampanyas%C4%B1%20ger%C3%A7ek%20g%C3%B6nderim%20yap%C4%B1ld%C4%B1...";
					int count = 0;
					while (count < 60) {
						if (url.contains(driver.getCurrentUrl().toString())) {
							log.info("Real Send Succeed");
							dizi[k][k] = "Campaign Real Send Sms (" + castType
									+ ")";
							dizi[k][k + 1] = "Pass";
							k++;
							break;
						} else {
							Thread.sleep(1000);
							count++;
						}
						if (count >= 60) {
							dizi[k][k] = "Campaign Real Send Sms (" + castType
									+ ")";
							dizi[k][k + 1] = "Fail";
							k++;
							log.error("Real Send Failed");
						}
					}
				} else {
					log.error("Send Failed");
					screenShot("SendCampaignSmsFailed(" + castType + ")");
					dizi[k][k] = "Campaign Send Sms (" + castType + ")";
					dizi[k][k + 1] = "Fail";
					k++;
				}
			} else {
				log.error("Registry Error");
				screenShot("SendCampaignSmsRegistry(" + castType + ")");
				dizi[k][k] = "Campaign Send Sms (" + castType + ")";
				dizi[k][k + 1] = "Fail";
				k++;
			}
		} catch (Exception e) {

			System.out.println(e.getMessage());
			// hata durumunda ekran alıntısı alınır
			failedSteps += "\n Campaing Send Sms (" + castType + ")";
			dizi[k][k] = "Campaign Send Sms (" + castType + ")";
			dizi[k][k + 1] = "Fail";
			k++;
			screenShot("SendCampaignSms(" + castType + ")");
			log.error("Application Stoped");
		}
	}