Hi,

I need help for the following scenario:

If i give the label name it should return me the value associated with it.

<div class="navHeaderFontColor">Current Position Details</div>
<dt>Longitude:</dt>
<dd>83.58673</dd>

For Ex:

If i pass "*Longitude*:" to a funtion, it should return me *83.58673*

How could i achieve this?

Thanks and Regards,
Gajendra

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAEQ_fxkWDHGFa%3DOgfeZis_Aqg-b61SQJpeB-G0uFE%3DCcWwKexQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

  • David at Sep 3, 2013 at 5:50 pm
    Try something like

    //div[@class=''navHeaderFontColor']/dt[contains(text(),'Longitude')]/following-sibling::dd
    On Tuesday, September 3, 2013 4:10:10 AM UTC-7, gajendra jain wrote:

    Hi,

    I need help for the following scenario:

    If i give the label name it should return me the value associated with it.

    <div class="navHeaderFontColor">Current Position Details</div>
    <dt>Longitude:</dt>
    <dd>83.58673</dd>

    For Ex:

    If i pass "*Longitude*:" to a funtion, it should return me *83.58673*

    How could i achieve this?

    Thanks and Regards,
    Gajendra
    --
    You received this message because you are subscribed to the Google Groups "Selenium Users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
    To post to this group, send email to selenium-users@googlegroups.com.
    To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/a0291c7f-b425-44b1-b473-b926a111905c%40googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Gajendra Jain at Sep 4, 2013 at 9:17 am
    Thanks David. Its working fine.

    On Tue, Sep 3, 2013 at 11:20 PM, David wrote:

    Try something like


    //div[@class=''navHeaderFontColor']/dt[contains(text(),'Longitude')]/following-sibling::dd
    On Tuesday, September 3, 2013 4:10:10 AM UTC-7, gajendra jain wrote:

    Hi,

    I need help for the following scenario:

    If i give the label name it should return me the value associated with it.

    <div class="navHeaderFontColor">**Current Position Details</div>
    <dt>Longitude:</dt>
    <dd>83.58673</dd>

    For Ex:

    If i pass "*Longitude*:" to a funtion, it should return me *83.58673*

    How could i achieve this?

    Thanks and Regards,
    Gajendra
    --
    You received this message because you are subscribed to the Google Groups
    "Selenium Users" group.
    To unsubscribe from this group and stop receiving emails from it, send an
    email to selenium-users+unsubscribe@googlegroups.com.
    To post to this group, send email to selenium-users@googlegroups.com.
    To view this discussion on the web visit
    https://groups.google.com/d/msgid/selenium-users/a0291c7f-b425-44b1-b473-b926a111905c%40googlegroups.com
    .
    For more options, visit https://groups.google.com/groups/opt_out.
    --
    You received this message because you are subscribed to the Google Groups "Selenium Users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
    To post to this group, send email to selenium-users@googlegroups.com.
    To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAEQ_fxn6%2B1onc4m68X4Yf7wJYSZH3JW%3Dh_5hfWVO4PttvmXYnQ%40mail.gmail.com.
    For more options, visit https://groups.google.com/groups/opt_out.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupselenium-users @
categoriesselenium
postedSep 3, '13 at 11:10a
activeSep 4, '13 at 9:17a
posts3
users2
websiteseleniumhq.org

2 users in discussion

Gajendra Jain: 2 posts David: 1 post

People

Translate

site design / logo © 2022 Grokbase