Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
rodale_janet
Active particpant
Active particpant
Posts : 10
Join date : 2014-03-07

How can I select content in this section of html?? Empty How can I select content in this section of html??

Wed May 21, 2014 6:14 pm
Code:
With this html, how can I select content without using any of the text??  This content may not be the same all the time, but I need to get to one of the selections within this html.   I have tried some things but to no avail.   The selection I go to does not matter but I would prefer it not be the first one.   Thanks in advance.

      <div class="view-content">        <div class="views-row views-row-1">    <span class="pubdate">July 31, 2012</span><h2 class="blog-post-title"><a href="/blogs/roadscholar/the-surprise-attack-and-when-not-to-do-it">The Surprise Attack (And When Not to Do It)</a></h1><p class='field-summary'>With 200 meters remaining in the 250-kilometer Men’s Olympic Road Race last Saturday, Colombia’s Rigoberto Uran made a fatal mistake: He turned his head to see what was happening behind him....</p><a href="/blogs/roadscholar/the-surprise-attack-and-when-not-to-do-it" class="read-more">Read more<span class="icon-arrow-right"></span></a><ul class="links inline"><li class="datetime first"><span>Posted at <time class="timestamp" datetime="2012-07-31T17:41:04-04:00">5:41 PM</time></span></li><li class="disqus_comments_num"><a href="/blogs/roadscholar/the-surprise-attack-and-when-not-to-do-it#disqus_thread" data-disqus-identifier="node/28978">Comments</a></li><li class="email"><a href="mailto:?subject=The%20Surprise%20Attack%20%28And%20When%20Not%20to%20Do%20It%29&amp;body=With 200 meters remaining in the 250-kilometer &lt;a href=&quot;http://www.bicycling.com/news/pro-cycling/ahead-pack-vinokourov-sprints-olympic-gold&quot;&gt;Men’s...     http://stage7.bicycling.com/blogs/roadscholar/the-surprise-attack-and-when-not-to-do-it" class="sharebtn"><span class="zicon-email"></span></a></li><li class="facebook"><a href="http://www.facebook.com/sharer.php?s=100&p[url]=http://stage7.bicycling.com/blogs/roadscholar/the-surprise-attack-and-when-not-to-do-it&p[title]=The%20Surprise%20Attack%20%28And%20When%20Not%20to%20Do%20It%29&p[summary]=With 200 meters remaining in the 250-kilometer &lt;a href=&quot;http://www.bicycling.com/news/pro-cycling/ahead-pack-vinokourov-sprints-olympic-gold&quot;&gt;Men’s..." class="sharebtn"><span class="zicon-facebook"></span></a></li><li class="twitter"><a href="https://twitter.com/intent/tweet?text=The%20Surprise%20Attack%20%28And%20When%20Not%20to%20Do%20It%29&url=http://stage7.bicycling.com/blogs/roadscholar/the-surprise-attack-and-when-not-to-do-it&via=bicyclingmag" class="sharebtn"><span class="zicon-twitter"></span></a></li><li class="pinterest"><a href="http://pinterest.com/pin/create/button/?url=http://stage7.bicycling.com/blogs/roadscholar/the-surprise-attack-and-when-not-to-do-it&description=With 200 meters remaining in the 250-kilometer &lt;a href=&quot;http://www.bicycling.com/news/pro-cycling/ahead-pack-vinokourov-sprints-olympic-gold&quot;&gt;Men’s..." class="sharebtn"><span class="zicon-pinterest"></span></a></li><li class="googleplus last"><a href="https://plus.google.com/share?url=http://stage7.bicycling.com/blogs/roadscholar/the-surprise-attack-and-when-not-to-do-it" class="sharebtn"><span class="zicon-googleplus"></span></a></li></ul>  </div>  <div class="views-row views-row-2">    <span class="pubdate">June 20, 2012</span><h2 class="blog-post-title"><a href="/blogs/roadscholar/advanced-team-construction-capstone-seminar">Advanced Team Construction (Capstone Seminar)</a></h1><p class='field-summary'>At some point this week, a selection panel consisting of Team Sky managers and coaches will sit down to make a difficult decision: which nine of the team’s 28 riders will be in Liege, Belgium, on Saturday, June 30th for the start of the 2012 Tour de France....</p><a href="/blogs/roadscholar/advanced-team-construction-capstone-seminar" class="read-more">Read more<span class="icon-arrow-right"></span></a><ul class="links inline"><li class="datetime first"><span>Posted at <time class="timestamp" datetime="2012-06-20T22:01:48-04:00">10:01 PM</time></span></li><li class="disqus_comments_num"><a href="/blogs/roadscholar/advanced-team-construction-capstone-seminar#disqus_thread" data-disqus-identifier="node/28977">Comments</a></li><li class="email"><a href="mailto:?subject=Advanced%20Team%20Construction%20%28Capstone%20Seminar%29&amp;body=At some point this week, a selection panel consisting of &lt;a href=&quot;http://www.bicycling.com/tags/team-sky&quot;&gt;Team...     http://stage7.bicycling.com/blogs/roadscholar/advanced-team-construction-capstone-seminar" class="sharebtn"><span class="zicon-email"></span></a></li><li class="facebook"><a href="http://www.facebook.com/sharer.php?s=100&p[url]=http://stage7.bicycling.com/blogs/roadscholar/advanced-team-construction-capstone-seminar&p[title]=Advanced%20Team%20Construction%20%28Capstone%20Seminar%29&p[summary]=At some point this week, a selection panel consisting of &lt;a href=&quot;http://www.bicycling.com/tags/team-sky&quot;&gt;Team..." class="sharebtn"><span class="zicon-facebook"></span></a></li><li class="twitter"><a href="https://twitter.com/intent/tweet?text=Advanced%20Team%20Construction%20%28Capstone%20Seminar%29&url=http://stage7.bicycling.com/blogs/roadscholar/advanced-team-construction-capstone-seminar&via=bicyclingmag" class="sharebtn"><span class="zicon-twitter"></span></a></li><li class="pinterest"><a href="http://pinterest.com/pin/create/button/?url=http://stage7.bicycling.com/blogs/roadscholar/advanced-team-construction-capstone-seminar&description=At some point this week, a selection panel consisting of &lt;a href=&quot;http://www.bicycling.com/tags/team-sky&quot;&gt;Team..." class="sharebtn"><span class="zicon-pinterest"></span></a></li><li class="googleplus last"><a href="https://plus.google.com/share?url=http://stage7.bicycling.com/blogs/roadscholar/advanced-team-construction-capstone-seminar" class="sharebtn"><span class="zicon-googleplus"></span></a></li></ul>  </div>  <div class="views-row views-row-3">    <span class="pubdate">June 6, 2012</span><h2 class="blog-post-title"><a href="/blogs/roadscholar/rethinking-hydration">Rethinking Hydration</a></h1><p class='field-summary'>The next time you head out for a ride on a hot day, I want you to try something:Collect every water bottle you can find and fill it with water.</p><a href="/blogs/roadscholar/rethinking-hydration" class="read-more">Read more<span class="icon-arrow-right"></span></a><ul class="links inline"><li class="datetime first"><span>Posted at <time class="timestamp" datetime="2012-06-06T23:02:39-04:00">11:02 PM</time></span></li><li class="disqus_comments_num"><a href="/blogs/roadscholar/rethinking-hydration#disqus_thread" data-disqus-identifier="node/28976">Comments</a></li><li class="email"><a href="mailto:?subject=Rethinking%20Hydration&amp;body=The next time you head out for a ride on a hot day, I want you to try something:
Collect...     http://stage7.bicycling.com/blogs/roadscholar/rethinking-hydration" class="sharebtn"><span class="zicon-email"></span></a></li><li class="facebook"><a href="http://www.facebook.com/sharer.php?s=100&p[url]=http://stage7.bicycling.com/blogs/roadscholar/rethinking-hydration&p[title]=Rethinking%20Hydration&p[summary]=The next time you head out for a ride on a hot day, I want you to try something:
Collect..." class="sharebtn"><span class="zicon-facebook"></span></a></li><li class="twitter"><a href="https://twitter.com/intent/tweet?text=Rethinking%20Hydration&url=http://stage7.bicycling.com/blogs/roadscholar/rethinking-hydration&via=bicyclingmag" class="sharebtn"><span class="zicon-twitter"></span></a></li><li class="pinterest"><a href="http://pinterest.com/pin/create/button/?url=http://stage7.bicycling.com/blogs/roadscholar/rethinking-hydration&description=The next time you head out for a ride on a hot day, I want you to try something:
Collect..." class="sharebtn"><span class="zicon-pinterest"></span></a></li><li class="googleplus last"><a href="https://plus.google.com/share?url=http://stage7.bicycling.com/blogs/roadscholar/rethinking-hydration" class="sharebtn"><span class="zicon-googleplus"></span></a></li></ul>  </div>  <div class="views-row views-row-4">    <span class="pubdate">May 24, 2012</span><h2 class="blog-post-title"><a href="/blogs/roadscholar/have-bike-will-travel">Have Bike, Will Travel</a></h1><p class='field-summary'>When you race or work for a professional cycling team, you get used to traveling—a lot. For teams competing almost exclusively in Europe, travel time is less extreme as most countries are relatively close to one another.</p><a href="/blogs/roadscholar/have-bike-will-travel" class="read-more">Read more<span class="icon-arrow-right"></span></a><ul class="links inline"><li class="datetime first"><span>Posted at <time class="timestamp" datetime="2012-05-24T17:26:13-04:00">5:26 PM</time></span></li><li class="disqus_comments_num"><a href="/blogs/roadscholar/have-bike-will-travel#disqus_thread" data-disqus-identifier="node/28975">Comments</a></li><li class="email"><a href="mailto:?subject=Have%20Bike%2C%20Will%20Travel&amp;body=When you race or work for a professional cycling team, you get used to traveling—a...     http://stage7.bicycling.com/blogs/roadscholar/have-bike-will-travel" class="sharebtn"><span class="zicon-email"></span></a></li><li class="facebook"><a href="http://www.facebook.com/sharer.php?s=100&p[url]=http://stage7.bicycling.com/blogs/roadscholar/have-bike-will-travel&p[title]=Have%20Bike%2C%20Will%20Travel&p[summary]=When you race or work for a professional cycling team, you get used to traveling—a..." class="sharebtn"><span class="zicon-facebook"></span></a></li><li class="twitter"><a href="https://twitter.com/intent/tweet?text=Have%20Bike%2C%20Will%20Travel&url=http://stage7.bicycling.com/blogs/roadscholar/have-bike-will-travel&via=bicyclingmag" class="sharebtn"><span class="zicon-twitter"></span></a></li><li class="pinterest"><a href="http://pinterest.com/pin/create/button/?url=http://stage7.bicycling.com/blogs/roadscholar/have-bike-will-travel&description=When you race or work for a professional cycling team, you get used to traveling—a..." class="sharebtn"><span class="zicon-pinterest"></span></a></li><li class="googleplus last"><a href="https://plus.google.com/share?url=http://stage7.bicycling.com/blogs/roadscholar/have-bike-will-travel" class="sharebtn"><span class="zicon-googleplus"></span></a></li></ul>  </div>
avatar
Paps_engineer
Active particpant
Active particpant
Posts : 10
Join date : 2014-07-24

How can I select content in this section of html?? Empty Re: How can I select content in this section of html??

Fri Oct 10, 2014 6:14 pm
hi,
 we can select content in html using the seleniumRC highlight command
This will select the particular element in the html.

Thanks,
Papaiadasan.S,
Automation COE,
Indium Software India Limited.
(indiumsoft.com/core-qa-offerings/test-automation)

http://www.indiumsoft.com/core-qa-offerings/test-automation" title="Test Automation">Test Automation
Back to top
Permissions in this forum:
You cannot reply to topics in this forum