How to get the values - "ipad,iPod" using "xpath:" concept?

Please find the part of an html :

   <ul id="globalnav" role="navigation">
    <li id="gn-apple"><a href="/"><span>Apple</span></a></li>
    <li id="gn-store"><a

href=“http://store.apple.com/”>Store

  • Mac

  • iPod

  • iPhone

  • iPad

  • iTunes

  • Support

  • Can we get the values ipad,iPod using Selenium-webdriver-xpath
    concept?

    Thanks,

    On Fri, Jan 25, 2013 at 12:17 PM, Arup R. [email protected]
    wrote:

    href=“/iphone/”>iPhone

  • iPad

  • iTunes

  • Support

  • Can we get the values ipad,iPod using Selenium-webdriver-xpath
    concept?

    It’s not clear what you want to use a selection criteria. Is it

    • the text
    • the tag’s name
    • an attribute value
    • an attribute’s name
    • a combination

    ?

    Cheers

    robert

    Robert K. wrote in post #1093735:

    It’s not clear what you want to use a selection criteria. Is it

    • the text
    • the tag’s name
    • an attribute value
    • an attribute’s name
    • a combination

    ?

    I want to get the values as mentioned in the subject using xpath with
    selenium-webdriver. Any logic is fine,but need to extract the fields
    information’s.

    On Fri, Jan 25, 2013 at 12:39 PM, Arup R. [email protected]
    wrote:

    ?

    I want to get the values as mentioned in the subject using xpath with
    selenium-webdriver. Any logic is fine,but need to extract the fields
    information’s.

    That does not answer my questions. You want to get those values based
    on what? As long as you do not describe the criteria I will happily
    implement

    def get; %w{ipad iPod} end

    Cheers

    robert

    Robert K. wrote in post #1093743:

    On Fri, Jan 25, 2013 at 12:39 PM, Arup R. [email protected]
    wrote:

    ?

    Here is my answer

    It’s not clear what you want to use a selection criteria. Is it

    • the text
    • the tag’s name (yes)
    • an attribute value(yes)
    • an attribute’s name(yes)
    • a combination(yes)

    Please help.

    On 25 Ιαν 2013, at 12:17 , Arup R. [email protected] wrote:

    href=“/iphone/”>iPhone
    Thanks,


    Posted via http://www.ruby-forum.com/.

    There are a lot of ruby tools that can do that. Nokogiri can do it
    easily. Watch this:

    Panagiotis (atmosx) Atmatzidis

    email: [email protected]
    URL: http://www.convalesco.org
    GnuPG ID: 0xE736C6A0
    gpg --keyserver x-hkp://pgp.mit.edu --recv-keys 0xE736C6A0