XHTML testing with WebAii

Thread is closed for posting
3 posts, 1 answers
  1. Clive Chinery
    Clive Chinery avatar
    2 posts
    Member since:
    Jul 2009

    Posted 29 Jul 2009 Link to this post

    When using Web Aii, is it possible to:

    • Scrape the rendered HTML and submit it to the W3C's XHTML validation web service
    • Pause the requested 1 second before the next scrape
  2. Answer
    Cody
    Admin
    Cody avatar
    3354 posts

    Posted 30 Jul 2009 Link to this post

    Hello Clive Chinery,

    Yes this is doable. Use this line of code to get the HTML source code:

    string HTML = ActiveBrowser.ViewSourceString; 

    Now that you have the HTML source code you can code up whatever it takes to submit it.

    I don't quite understand what you mean by "Pause the requested 1 second..." If you mean you just want to insert a one second delay, use:


    Thread.Sleep(1000);  
     

    Greetings,
    Cody
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Clive Chinery
    Clive Chinery avatar
    2 posts
    Member since:
    Jul 2009

    Posted 02 Aug 2009 Link to this post

    Thank you for the information regarding getting the rendered HTML.
Back to Top