SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Dec 2004
    Location
    Pune
    Posts
    33
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    retreive HTML source from open web page

    Hi,
    Is it possible to retreive the HTML source of any openm webpage. I have a scenario in which i am suppose to read the text displayed. Using GetRO...its not possible.
    Idea is to retreive the HTML code and search the string in the code.
    pls help in this issue.

    cheers,
    prashant
    Test Driven approach is not Testing

  2. #2
    Moderator
    Join Date
    Sep 2001
    Location
    Doncaster, UK
    Posts
    5,788
    Post Thanks / Like
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: retreive HTML source from open web page

    Use GetROProperty on the innerHTML of the page.

    If there are any frames in the webpage you may get issues.

    Mark Smith.

  3. #3
    Advanced Member RKY's Avatar
    Join Date
    Aug 2006
    Location
    Hyderabad, India
    Posts
    586
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: retreive HTML source from open web page

    You want to find the text in html source for any webpage opens.

    Regards,
    Ram

  4. #4
    Member
    Join Date
    Dec 2004
    Location
    Pune
    Posts
    33
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: retreive HTML source from open web page

    that is what the issue is.
    GetRO is not usful in this situation.
    I want to fetch the HTML source of the any webpage open in the browser. As we do it right clicking on the page and then View source.

    cheers,
    prashant
    Test Driven approach is not Testing

  5. #5
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: retreive HTML source from open web page

    And why is not useful?

    Browser("CreationTime:=0").Page("micClass:=Page"). GetROProperty("innerHTML")
    Browser("CreationTime:=1").Page("micClass:=Page"). GetROProperty("innerHTML")
    Browser("CreationTime:=2").Page("micClass:=Page"). GetROProperty("innerHTML")
    ......
    ......

  6. #6
    Member
    Join Date
    Dec 2004
    Location
    Pune
    Posts
    33
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: retreive HTML source from open web page

    thanks tarun,
    able to do it.

    thanks again.

    cheers,
    prashant
    Test Driven approach is not Testing

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 7.69%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 01:49 PM.

Copyright BetaSoft Inc.