RE: Help me to locate an weblement
Can anyone help me to locate this element.There is a paticular link i want to click.
Firepath gives the xpath as “html/body/section/ul/li/article/div/a/h3” but webdriver can’t find this xpath and it can’t find the css selector also–
driver.findElement(By.cssSelector("#product-popup-list-item > article.product > div.product-title-wrapper > a > h3.title")).click();.
I can’t locate it either by name,link or id.
<a class="" href="/film/abc-26542205"> <h3 class="title"> 300: abc </h3> <p class="format">(Blu-ray)</p> </a>
Here html/body/section/ul/li/article/div/a/h3 is relative to the HTML page. from the HTML snippet you have give its quite hard to understand what is above Artcile tag. Inside the article that is from /article/div/a/h3 everything seems find. It has to be html/body/section/ul/li/ this part that might be wrong.