This is the link to the webpage I am attempting to automate:
My goal is to extract the value of the non-strikethrough price (currently $ 20.00) using Selenium and an XPath locator.
The following HTML snippet contains the element I am targeting:
<div class="course row" data-scroll-reveal=""
style="-webkit-transform: translatey(24px);transform: translatey(24px);opacity: 0;-webkit-transition: -webkit-transform 0.66s ease-in-out 0s, opacity 0.66s ease-in-out 0s;transition: transform 0.66s ease-in-out 0s, opacity 0.66s ease-in-out 0s;-webkit-perspective: 1000;-webkit-backface-visibility: hidden;"
data-scroll-reveal-initialized="true">
<div class="col-sm-4">
<a href="course-detail.php?id=130&t=websecurity-testing-for-beginners-qa-knowledge-to-next-level">
<img src="/courses-description.php?show=130" alt="websecurity-testing-for-beginners-qa-knowledge-to-next-level" class="img-responsive" width="186" height="123">
</a>
</div>
<div class="col-sm-8">
<div class="row">
<div class="col-md-9 col-sm-8">
<h3>
<a href="course-detail.php?id=130&t=websecurity-testing-for-beginners-qa-knowledge-to-next-level">
WebSecurity Testing for Beginners-QA knowledge to next level
</a>
</h3>
<div class="meta">
<span><i class="fa fa-user"></i><a href="#">Rahul Shetty</a></span>
<span><i class="fa fa-file-text"></i>60 Lessons</span>
<span><i class="fa fa-folder"></i><a href="#">Penetration testing</a></span>
</div>
</div>
<div class="col-md-3 col-sm-4 price">
<del style="font-size:15px;color:#aaa">$ 85.00</del>
<br>
$ 20.00
</div>
</div>
<div class="row">
<div class="col-sm-12">
<p class="course-desc">
Course Launch Date : Aug 30th 2015 -Its Time to Protect our Websites from Security Attacks This Tutorial will give all the weapons you needed to investigate and
unlock the Security Holes in the Web applicationCourse lectures are conceptually driven with root level explanations and bring you to the level where you can
bring out the security bugsCourse Contents: Basics of Security Testing...
<br>
<a href="course-detail.php?id=130&t=websecurity-testing-for-beginners-qa-knowledge-to-next-level">
Read More
<i class="fa fa-angle-right"></i>
</a>
</p>
</div>
</div>
</div>
<div class="col-md-12">
<hr>
</div>
</div>
I have attempted various methods but have not yet found a solution.