Results 1 to 4 of 4
  1. #1

    Working with Div, Span tags

    Am running out problems with the tags Div and Span which are used to divied a set of elements in a web page

    please can any one help me to traverse ( use them as tables) to pick the elements in between them would be of great help .

    Thanks in Advance

  2. #2

    Re: Working with Div, Span tags

    Hi Kautilya,

    Could you provide us with access to the web page you are testing? If this is not possible, please post here the HTML source of the page in question (or send it to us at support@automatedqa.com).
    Best regards,
    David - SmartBear Support

  3. #3

    Re: Working with Div, Span tags

    HI David,
    here is a chunk of html code which contains a division contains set of links as a results
    how can get into array all the links of result division

    <!start result>
    <div id="result">
    <a target="_blank" href="Mypage1" id="target_1">1</a>
    <a target="xx"> <!-- companyname: x </a>
    <a target="xx"> <!-- companyname: y </a>
    <a target="xx"> <!-- companyname: z </a>
    <a target="xx"> <!-- companyname: a </a>
    <!end result>

    Thanks for the response

  4. #4

    Re: Working with Div, Span tags

    Hi Kautilya,

    You can use the 'children' property of the DIV object to do this. For example:

    <font class="small">Code:</font><hr /><pre>...

    var div = Sys.Process("iexplore").Window("IEFrame").Window(" Shell DocObject View").Window("Internet Explorer_Server",1).Page("file:///C:\\test.html").document.all.Item("result");

    var arr = new Array();
    for(var i = 0; i &lt; div.children.length; i++)
    ...</pre><hr />
    Best regards,
    David - SmartBear Support



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
BetaSoft Inc.
All times are GMT -8. The time now is 03:49 PM.

Copyright BetaSoft Inc.