[quote:3rr95ulc]By.xpath("//span[@class='nU n1']/a[@class='J-Ke n0']"
driver.findElement(By.xpath("//span[@class='nU n1']/a[@class='J-Ke n0']")).click();
driver.findElement(By.xpath("//table[@class='F cf zt']/tbody/tr[1]/td[5]/div[2]/span")).click();
///driver.findElement(By.xpath("//*[@id=':1k9']/span]")).click();
[/quote:3rr95ulc]
these xpaths are very unstable they will keep on changing and overall gmail is one of the hardest website to automate.
start by how handle dynamic xpaths. its explained in the video.
that's fine.
But please let me know whether this logic is correct or not.
is there any other logic? to capture 1st unread mail.
It was exercise question in module 17
[quote:68nsb8jb]But please let me know whether this logic is correct or not.
[/quote:68nsb8jb]
logic is incorrect as xpaths are wrong.
watch module 17 for how to handle dynamic xpaths