7. HTML
BODY
DIV DIV DIV
DIV A A SPAN TABLE
TR
TD
TD
TD
TR
TD
TD
TD
class = banner id= banner
Attribute
href=“in.bookmyshow.com/f
avicon”
IMG
Attribute
href
9. HTML
BODY
DIV DIV DIV
DIV A A SPAN TABLE
TR
TD
TD
TD
TR
TD
TD
TD
class = banner id= banner
Attribute
href=“in.bookmyshow.com/f
avicon”
IMG
Attribute
href
driver.findElement(By.cssSelector(”.banner"));
driver.findElement(By.xpath(”//div[@class=‘banner’"));
11. HTML
BODY
DIV DIV DIV
DIV A A SPAN TABLE
TR
TD
TD
TD
TR
TD
TD
TD
class = banner id= banner
Attribute
href=“in.bookmyshow.com/f
avicon”
IMG
Attribute
href
driver.findElement(By.cssSelector(”#banner"));
driver.findElement(By.xpath(”//div[@id=‘banner’]"));
13. HTML
BODY
DIV DIV DIV
DIV A A SPAN TABLE
TR
TD
TD
TD
TR
TD
TD
TD
class = banner id= banner
Attribute
href=“in.bookmyshow.com/f
avicon”
IMG
Attribute
href
driver.findElements(By.cssSelector(”div"));
driver.findElements(By.xpath(”//div"));
15. HTML
BODY
DIV DIV DIV
DIV A A SPAN TABLE
TR
TD
TD
TD
TR
TD
TD
TD
class = banner id= banner
Attribute
href=“in.bookmyshow.com/f
avicon”
IMG
Attribute
href
driver.findElements(By.cssSelector(”tr > td"));
driver.findElements(By.xpath(”//tr/td"));
17. HTML
BODY
DIV DIV DIV
DIV A A SPAN TABLE
TR
TD
TD
TD
TR
TD
TD
TD
class = banner id= banner
Attribute
href=“in.bookmyshow.com/f
avicon”
IMG
Attribute
href
driver.findElements(By.cssSelector(”[href]"));
driver.findElements(By.xpath(”//*[@href]"));
19. HTML
BODY
DIV DIV DIV
DIV A A SPAN
class = banner id= banner
Attribute
href=“in.bookmyshow.com/f
avicon”
IMG
Attribute
href
driver.findElement(By.cssSelector(”a[href^=‘in’]"));
driver.findElement(By.xpath(”//a[starts-with(@href,’in’)]"));
21. HTML
BODY
DIV DIV DIV
DIV A A SPAN
class = banner id= banner
Attribute
href=“in.bookmyshow.com/f
avicon”
IMG
Attribute
href
driver.findElement(By.cssSelector(”a[href$=‘favicon’]"));
driver.findElement(By.xpath(”//a[ends-with(@href,‘favicon’)]"));
23. HTML
BODY
DIV DIV DIV
DIV A A SPAN
class = banner id= banner
Attribute
href=“in.bookmyshow.com/f
avicon”
IMG
Attribute
href
driver.findElement(By.cssSelector(”a[href*=‘bookmyshow’]"));
driver.findElement(By.xpath(”//a[contains(@href,‘bookmyshow’]"));
25. HTML
BODY
DIV DIV DIV
DIV A A SPAN TABLE
TR
TD
TD
TD
TR
TD
TD
TD
class = banner id= banner
Attribute
href=“in.bookmyshow.com/f
avicon”
IMG
Attribute
href
driver.findElements(By.cssSelector(”td:nth-child(2)"));
driver.findElements(By.xpath(”//td[2]"));