dimanche 1 juillet 2018

XPATH CANT BE LOCATED BY THE SELENIUM

WebElement gender = driver.findElement(By.xpath("//*[@id=\'field\']/div/div/div[2]/div[3]/label[2]/input")); Boolean validi = (Boolean)js.executeScript("return arguments[0].checkValidity();", gender); String messagei = (String)js.executeScript("return arguments[0].validationMessage;", gender); System.out.println(messagei);

UNABLE TO FIND THE XPATH EXPRESSION ?WHY

Aucun commentaire:

Enregistrer un commentaire