This is a migrated thread and some comments may be shown as answers.

XHTML testing with WebAii

2 Answers 29 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Clive Chinery
Top achievements
Rank 1
Clive Chinery asked on 29 Jul 2009, 08:57 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Cody
Telerik team
answered on 30 Jul 2009, 02:44 PM
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.
0
Clive Chinery
Top achievements
Rank 1
answered on 02 Aug 2009, 08:57 PM
Thank you for the information regarding getting the rendered HTML.
Tags
General Discussions
Asked by
Clive Chinery
Top achievements
Rank 1
Answers by
Cody
Telerik team
Clive Chinery
Top achievements
Rank 1
Share this question
or