New answers tagged

0

You made the mistake of writing you automation without taking your domain into consideration. Let look at your selector //table[@class='ui-datepicker-calendar']//td[@data-month='9']//a[.='22'] The first part is absolutely fine, you go straight and root yourself in the interesting sub component. On the second value, you define that september (data-month=9) ...


0

Try like below and confirm: driver.get("https://www.abhibus.com/"); WebDriverWait wait = new WebDriverWait(driver,30); // Click on the "Date of journey" wait.until(ExpectedConditions.elementToBeClickable(By.id("datepicker1"))).click(); // try to click on the date since past dates will be disabled. try { ...


Top 50 recent answers are included