Test Cases on User’s Timeline:
Selenium Webdriver
April 30, 2020
How to automate Date Picker on MakeMyTrip website?
package demopackage;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class CalendarExample {
public static void main(String[] args) throws InterruptedException {
// TODO Auto-generated method stub
System.setProperty("webdriver.chrome.driver", "C:\\Work\\chromedriver.exe");
WebDriver driver = new ChromeDriver();
driver.manage().window().maximize();
driver.get("https://www.makemytrip.com/");
driver.findElement(By.xpath("//span[contains(text(),'DEPARTURE')]")).click();
Thread.sleep(5000);
String flag = "False";
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class CalendarExample {
public static void main(String[] args) throws InterruptedException {
// TODO Auto-generated method stub
System.setProperty("webdriver.chrome.driver", "C:\\Work\\chromedriver.exe");
WebDriver driver = new ChromeDriver();
driver.manage().window().maximize();
driver.get("https://www.makemytrip.com/");
driver.findElement(By.xpath("//span[contains(text(),'DEPARTURE')]")).click();
Thread.sleep(5000);
String flag = "False";