Relative Content

Tag Archive for javaselenium-webdrivertestingautomation

Change string date formate

for (int i = 0; i < 9; i++) { String availableDate = driver.findElement(By.xpath(“URL”)) .getText().trim(); System.out.println(“date from website is “+availableDate); System.out.println(“sent date is “+sentDate); SimpleDateFormat sdf = new SimpleDateFormat(“dd/MM/yyyy, HH:mm:ss”); try { Thread.sleep(1000); if (!sdf.parse(sentDate).after(sdf.parse(availableDate))) { b = true; break; } } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); Trying to change […]

Troubleshooting WebDriver Binaries Update Issue in Selenium Automation Setup

Encountered compatibility issues with the ChromeDriver binary specified in the repositorymap.xml file for my Selenium automation setup. Despite attempting to update the <filelocation> and <hash> attributes to reflect the latest ChromeDriver version 124.0.6367.202, as recommended in “Mastering Selenium 3.0 Second Edition,” the browser session fails to launch, displaying the error message: