Using xpath unable to select dynamic id
Followed your tutorial of xpath and generated a relative xpath for the gmail – compose window -attach icon . ” driver.findElement(By.xpath(“//div[contains(@id,’:1′)]”)).click();
where the id of the attach file is keep on changing except first two characters ” :1″ .
Please help me .