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[2]/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>



Priya Train Asked on September 5, 2014 in Selenium WebDriver.
Add Comment
5 Answers

Hi Virender,
Actually I can’t post the site url here.Sorry for that.And this element is not hosted inside an Iframe.
It’s same like here
Imagine I want click on an product here.when I’m trying to catch xpath by firepath it gives these details.


<article class=”product”>
<div class=”product-image-wrapper”>
<div class=”product-title-wrapper”>
<a class=”” href=”/film/1_-_frozen_(blu-ray)_(import)-25620″>
<h3 class=”title”> 1 – frozen (Blu-ray) … </h3>
<p class=”format”>(Blu-ray)</p>
<div class=”gradient-overlay”/>

Train Answered on September 5, 2014.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.