Results 1 to 11 of 11
  1. #1
    Hemanth Kumar is offline Member
    Join Date
    Feb 2012
    Location
    Bangalore
    Posts
    32
    Rep Power
    0

    Question how to capture the web element values

    List<WebElement> webElements = driver.findElements(By.tagName("a"));


    What does this code indicates..?

  2. #2
    Hemanth Kumar is offline Member
    Join Date
    Feb 2012
    Location
    Bangalore
    Posts
    32
    Rep Power
    0

    Default Re: how to capture the web element values

    distribution_list_monitoring.xcvs
    enterprise_activity_monitoring.xcvs
    im_service_monitoring.xcvs
    inbound_service_monitoring.xcvs
    inbound_service_monitoring_using_ipniq.xcvs
    line.xcvs
    m3_monitoring.xcvs
    outbound_feed_queue_monitoring.xcvs
    outbound_service_dialing_performance.xcvs
    outbound_service_monitoring.xcvs
    outbound_table_monitoring.xcvs
    performance_summary.xcvs
    service_activity_monitoring.xcvs
    service_activity_monitoring_by_disposition.xcvs
    service_activity_monitoring_by_time.xcvs
    workgroup_summary.xcvs


    These are the list of web elements i have in the west panel of my web page.. how to click on the line.xcvs link using java code..?

  3. #3
    Hemanth Kumar is offline Member
    Join Date
    Feb 2012
    Location
    Bangalore
    Posts
    32
    Rep Power
    0

    Default Re: how to capture the web element values

    <html lang="en" xmlns:sdk="" class=" x-viewport">
    <head>
    <body id="ext-gen3" class=" ext-gecko ext-gecko3 x-border-layout-ct">
    <div id="north" class=" x-border-panel" style="font-family: Tahoma,Verdana,Arial,Helvetica,sans-serif; background-color: white; height: 32px; left: 0px; top: 0px; width: 1024px;">
    <div id="ext-comp-1020" class=" x-panel x-border-panel" style="left: 0px; top: 309px; width: 1024px;">
    <div id="west-panel" class=" x-panel x-border-panel" style="width: 200px; left: 5px; top: 32px;">
    <div id="ext-gen69" class="x-panel-header x-unselectable" style="-moz-user-select: none;">
    <div id="ext-gen73" class="x-tool x-tool-toggle x-tool-collapse-west">&nbsp;</div>
    <span id="ext-gen75" class="x-panel-header-text">Canvas Explorer</span>
    </div>
    <div id="ext-gen70" class="x-panel-bwrap">
    <div id="ext-gen71" class="x-panel-body" style="overflow: auto; width: 198px; height: 218px;">
    <div id="publicCanvasTreeId" class=" x-panel x-panel-noborder x-tree" style="width: auto;">
    <div id="ext-gen101" class="x-panel-header x-panel-header-noborder x-unselectable x-accordion-hd" style="-moz-user-select: none; cursor: pointer;">
    <div id="ext-gen165" class="x-tool x-tool-refresh">&nbsp;</div>
    <span class="x-panel-header-text">
    <div id="ext-gen105" class="x-tool x-tool-toggle">&nbsp;</div>
    <img class="x-panel-inline-icon bPublicCanvasFolder" src="extjs/resources/images/default/s.gif">
    <span id="ext-gen104" class="x-panel-header-text">Public Canvases</span>
    </span>
    </div>
    <div id="ext-gen102" class="x-panel-bwrap">
    <div id="ext-gen103" class="x-panel-body x-panel-body-noborder" style="width: auto; height: 98px; overflow: auto;">
    <ul id="ext-gen166" class="x-tree-root-ct x-tree-lines">
    <div class="x-tree-root-node">
    <li class="x-tree-node">
    <li class="x-tree-node">
    <li class="x-tree-node">
    <li class="x-tree-node">
    <li class="x-tree-node">
    <li class="x-tree-node">
    <div id="ext-gen173" class="x-tree-node-el x-tree-node-leaf x-unselectable file" unselectable="on" ext:tree-node-id="51d5cc66-7d83-4164-a4d3-97087c6cfdc6">
    <span class="x-tree-node-indent"></span>
    <img class="x-tree-ec-icon x-tree-elbow" src="extjs/resources/images/default/s.gif">
    <img class="x-tree-node-icon" unselectable="on" src="extjs/resources/images/default/s.gif">
    <a class="x-tree-node-anchor" tabindex="1" href="" hidefocus="on">
    <span unselectable="on">line</span>
    </a>
    </div>
    <ul class="x-tree-node-ct" style="display:none;"></ul>
    </li>
    <li class="x-tree-node">
    <li class="x-tree-node">
    <li class="x-tree-node">
    <li class="x-tree-node">
    <li class="x-tree-node">
    <li class="x-tree-node">
    <li class="x-tree-node">
    <li class="x-tree-node">
    <li class="x-tree-node">
    <li class="x-tree-node">
    </div>
    </ul>
    </div>
    </div>
    </div>




    From the above HTML code <div id="ext-gen173" this id is meant for the line.xcvs.. How to capture this value and click this...?

  4. #4
    Tolls is online now Moderator
    Join Date
    Apr 2009
    Posts
    12,016
    Rep Power
    20

    Default Re: how to capture the web element values

    What do you mean by "click this"?
    Indeed, what is all this?
    What web page?
    What "west panel"?
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  5. #5
    Hemanth Kumar is offline Member
    Join Date
    Feb 2012
    Location
    Bangalore
    Posts
    32
    Rep Power
    0

    Default Re: how to capture the web element values

    The .xcvs list which i have given in the above posts are the links on the web page.. i want to capture that control ids and click on it..

  6. #6
    Hemanth Kumar is offline Member
    Join Date
    Feb 2012
    Location
    Bangalore
    Posts
    32
    Rep Power
    0

    Default Re: how to capture the web element values

    as in any web pages u can see that it will be divided into panels.. from the HTML file above the tree structure clearly indicates those .xcvs links are present in a panel named as west panel..

  7. #7
    Tolls is online now Moderator
    Join Date
    Apr 2009
    Posts
    12,016
    Rep Power
    20

    Default Re: how to capture the web element values

    Click on them how?
    Is this an applet you're trying to get to access these (I presume) links?
    What?
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  8. #8
    Hemanth Kumar is offline Member
    Join Date
    Feb 2012
    Location
    Bangalore
    Posts
    32
    Rep Power
    0

    Default Re: how to capture the web element values

    No its not an applet. Its just a link which will open in the same window.. has some details about the data sources..

  9. #9
    Tolls is online now Moderator
    Join Date
    Apr 2009
    Posts
    12,016
    Rep Power
    20

    Default Re: how to capture the web element values

    And where does Java come into this?
    If Java is not the thing reading the response from the URL, and isn't an applet in the web page, where exactly is Java going to sit?
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  10. #10
    Hemanth Kumar is offline Member
    Join Date
    Feb 2012
    Location
    Bangalore
    Posts
    32
    Rep Power
    0

    Default Re: how to capture the web element values

    Using selenium to automate the controls in the web page.. lauching the web browser.. and finding the controls of each control in the web page is done in java only...

  11. #11
    Tolls is online now Moderator
    Join Date
    Apr 2009
    Posts
    12,016
    Rep Power
    20

    Default Re: how to capture the web element values

    You don't think it might have been an idea to mention Selenium then?
    I could have saved myself a load of time by ignoring the thread then...
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. Replies: 14
    Last Post: 01-22-2011, 02:36 PM
  2. Capture
    By PhQ in forum New To Java
    Replies: 7
    Last Post: 10-17-2010, 05:26 PM
  3. HashMap contains all values but doesn't show all values
    By xcallmejudasx in forum New To Java
    Replies: 3
    Last Post: 05-10-2009, 11:35 PM
  4. Replies: 0
    Last Post: 05-22-2008, 10:53 AM
  5. Replies: 4
    Last Post: 04-15-2008, 01:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •