<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Lightweight Test Automation Framework</title><link>http://forums.asp.net/1193.aspx</link><description>Discuss the Lightweight Test Automation Framework for ASP.NET, ask questions, post bugs, etc</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>LTAF and XPATH</title><link>http://forums.asp.net/thread/3569239.aspx</link><pubDate>Wed, 16 Dec 2009 16:49:56 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3569239</guid><dc:creator>Dmitriy Kozhevnikov</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3569239.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1193&amp;PostID=3569239</wfw:commentRss><description>&lt;p&gt;I am very interested in this framework, he made a favorable impression on me =)
In future I planned to investigate some time in LTAF and will soon try to use this TOOLS in real projects. But I have some question. What about XPATH? &amp;nbsp;Are there any methods for working with XPATH(like ClickXPath in Selenium)?&lt;/p&gt;&lt;p&gt;---------&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Dmitriy&lt;/p&gt;</description></item><item><title>Unable to find any types marked with WebTestClass on second pass using runner</title><link>http://forums.asp.net/thread/3540492.aspx</link><pubDate>Mon, 30 Nov 2009 23:21:43 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3540492</guid><dc:creator>lkmckinney</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3540492.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1193&amp;PostID=3540492</wfw:commentRss><description>&lt;p&gt;We wrote a series of tests in a separate project and included that with the test runner site (instead of putting the tests under App_Code).&amp;nbsp; Running interactively in VS 2008, we&amp;#39;ve had no problems.&amp;nbsp; Running the test using the test runner (November drop), it will work the first time.&amp;nbsp; Running it again after that and&amp;nbsp;making no changes, we get the error &amp;quot;Could not find any types marked with WebTestClass attribute&amp;quot;.&amp;nbsp; Once we do this, we cannot run again using the runner or the URL itself in or out of the IDE without rebuilding.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Thanks for any ideas.&lt;/p&gt;</description></item><item><title>Creating a webtest in VSTS 2008</title><link>http://forums.asp.net/thread/3530949.aspx</link><pubDate>Tue, 24 Nov 2009 21:57:35 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3530949</guid><dc:creator>elmoWatson</dc:creator><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3530949.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1193&amp;PostID=3530949</wfw:commentRss><description>&lt;p&gt;First off, I&amp;#39;ve got VSTS 2008 Developer Edition, SP1&lt;/p&gt;
&lt;p&gt;I went to this page, and followed the instructions to&amp;nbsp;create a webtest:&lt;br /&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms182539(VS.80).aspx"&gt;http://msdn.microsoft.com/en-us/library/ms182539(VS.80).aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I followed the instructions to create a webtest:&lt;/p&gt;
&lt;li&gt;
&lt;p&gt;On the &lt;b&gt;Test&lt;/b&gt; menu, click &lt;b&gt;New Test&lt;/b&gt;. &lt;/p&gt;
&lt;p&gt;The &lt;b&gt;Add New Test&lt;/b&gt; dialog box is displayed.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Select &lt;b&gt;Web Test&lt;/b&gt;. &lt;br /&gt;&lt;br /&gt;However, when I get there, &amp;#39;WEB TEST&amp;#39; does not exist. All I get for options are:&lt;br /&gt;Ordered Test, Unit Test and the Unit Test Wizard.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;What&amp;#39;s up here?&lt;br /&gt;How can I get to the WebTest portion, to record my actions for testing?
&lt;p&gt;&lt;/li&gt;
&lt;li&gt;&lt;/p&gt;
&lt;p&gt;&lt;/li&gt;
&lt;li&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/li&gt;</description></item><item><title>Where is the download?</title><link>http://forums.asp.net/thread/3494343.aspx</link><pubDate>Wed, 04 Nov 2009 16:41:58 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3494343</guid><dc:creator>zackM</dc:creator><slash:comments>9</slash:comments><comments>http://forums.asp.net/thread/3494343.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1193&amp;PostID=3494343</wfw:commentRss><description>&lt;p&gt;I found this on codePlex and cant download it.&amp;nbsp; All the downloads have been removed.&amp;nbsp; Whats up, is this a dead project?&lt;/p&gt;</description></item><item><title>Can we execute jquery scripts on the page using LTAF?</title><link>http://forums.asp.net/thread/3465475.aspx</link><pubDate>Mon, 19 Oct 2009 16:00:32 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3465475</guid><dc:creator>kirthi.royadu</dc:creator><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3465475.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1193&amp;PostID=3465475</wfw:commentRss><description>&lt;p&gt;Can we execute jquery scripts on the page using LTAF? How?&lt;/p&gt;</description></item><item><title>How to settext to HtmlTextAreaElement</title><link>http://forums.asp.net/thread/3443320.aspx</link><pubDate>Tue, 06 Oct 2009 14:03:24 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3443320</guid><dc:creator>david4chao</dc:creator><slash:comments>7</slash:comments><comments>http://forums.asp.net/thread/3443320.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1193&amp;PostID=3443320</wfw:commentRss><description>&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I have an HtmlTextAreaElement which I want to set text.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;HtmlTextAreaElement _ControlOfsummary = (HtmlTextAreaElement)_ContainerOfControlOfsummary.ChildElements.Find(&amp;quot;ControlID_Prefix_Editor_FreeTextBox_summary&amp;quot;);&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;_ControlOfsummary.SetText(&amp;quot;Test string 111111111111111&amp;quot;);&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;&lt;p&gt;&lt;p&gt;HtmlTextAreaElement _ControlOfsummary = (HtmlTextAreaElement)_ContainerOfControlOfsummary.ChildElements.Find(&amp;quot;summary&amp;quot;);&lt;/p&gt;&lt;p&gt;_ControlOfsummary.SetText(&amp;quot;Test string&amp;quot;);&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;It is not working.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description></item><item><title>How to simulate enter keypress on a textbox?</title><link>http://forums.asp.net/thread/3446218.aspx</link><pubDate>Wed, 07 Oct 2009 19:05:47 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3446218</guid><dc:creator>kirthi.royadu</dc:creator><slash:comments>5</slash:comments><comments>http://forums.asp.net/thread/3446218.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1193&amp;PostID=3446218</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;
&lt;p&gt;How do I simulate a enter keypress on the textbox.&lt;/p&gt;
&lt;p&gt;We have a search textbox with a search button alongside it. So we have to test if the enter keypress triggers the search.&lt;/p&gt;
&lt;p&gt;Couldn&amp;#39;t understand how to use the HtmlEvent and HtmlKeyEvent classes to do this. Need some help on this.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Can I use this framework for testing Ajax-enabled web sites?</title><link>http://forums.asp.net/thread/2938289.aspx</link><pubDate>Fri, 13 Feb 2009 03:29:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2938289</guid><dc:creator>farmas</dc:creator><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/2938289.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1193&amp;PostID=2938289</wfw:commentRss><description>&lt;p&gt;&lt;b&gt;Q&lt;/b&gt;: Does it also work for testing AJAX-enabled .Net web applications?&lt;/p&gt;
&lt;p&gt;&lt;b&gt;A&lt;/b&gt;: Yes, this framework supports testing web sites that use Ajax, that is one of the primary reasons why this framework was created. If you look through the API there are a lot of &amp;quot;Wait&amp;quot; methods that are useful when automating XmlHttp requests. For example: HtmlPage.WaitForAsyncPostComplete, HtmlPage.WaitForScript, HtmlElement.WaitForAttributeValue, HtmlElement.WaitForInnerText, HtmlElement.WaitUntilNotFound.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;- Federico &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Is automating Browser settings, like disabling javascript possible through LTAF?</title><link>http://forums.asp.net/thread/3446146.aspx</link><pubDate>Wed, 07 Oct 2009 18:31:01 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3446146</guid><dc:creator>kirthi.royadu</dc:creator><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/3446146.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1193&amp;PostID=3446146</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;
&lt;p&gt;We need to test our app&amp;#39;s behaviour after disabling javascript in the browser.&lt;/p&gt;
&lt;p&gt;Is this possible in LTAF? If possible, is this possible on different browsers like firefox and chrome&amp;nbsp;as well instead of only IE?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item><item><title>How to settext to Asp.Net FileUpload?</title><link>http://forums.asp.net/thread/3441418.aspx</link><pubDate>Mon, 05 Oct 2009 17:23:22 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3441418</guid><dc:creator>david4chao</dc:creator><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/3441418.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1193&amp;PostID=3441418</wfw:commentRss><description>&lt;p&gt;How to settext to Asp.Net FileUpload?&lt;/p&gt;&lt;p&gt;e.g. on asp.net web page, I have:&lt;/p&gt;&lt;p&gt;&amp;lt;asp:FileUpload ID=&amp;quot;FileUpload_String_largeIcon&amp;quot; runat=&amp;quot;server&amp;quot; /&amp;gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;HtmlInputElement _ControlOflargeIcon = (HtmlInputElement)_ContainerOfControlOflargeIcon.ChildElements.Find(&amp;quot;FileUpload_String_largeIcon&amp;quot;);&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CommandParameters _A = new CommandParameters(WaitFor.None, PopupAction.ConfirmOK);&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;_ControlOflargeIcon.Click(_A);&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;_ControlOflargeIcon.SetText(&amp;quot;D:\\Test\\1.jpg&amp;quot;);&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;&lt;p&gt;&lt;p&gt;I want to set the file path:&lt;/p&gt;&lt;p&gt;HtmlInputElement _ControlOflargeIcon = (HtmlInputElement)_ContainerOfControlOflargeIcon.ChildElements.Find(&amp;quot;FileUpload_String_largeIcon&amp;quot;);&lt;/p&gt;&lt;p&gt;_ControlOflargeIcon.SetText(&amp;quot;D:\\Test\\1.jpg&amp;quot;);&lt;/p&gt;&lt;div&gt;It is not working.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description></item><item><title>How can i check if a Validator was raised?</title><link>http://forums.asp.net/thread/3413240.aspx</link><pubDate>Fri, 18 Sep 2009 15:24:59 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3413240</guid><dc:creator>akisasp</dc:creator><slash:comments>3</slash:comments><comments>http://forums.asp.net/thread/3413240.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1193&amp;PostID=3413240</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;problably not the first to ask this but can&amp;#39;t find any info.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;thanks&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Testing non-ajax forms</title><link>http://forums.asp.net/thread/3377274.aspx</link><pubDate>Sun, 30 Aug 2009 13:18:31 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3377274</guid><dc:creator>fabiomilheiro</dc:creator><slash:comments>5</slash:comments><comments>http://forums.asp.net/thread/3377274.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1193&amp;PostID=3377274</wfw:commentRss><description>&lt;p&gt;I have seen that LTAF is great to test Ajax forms, but can we also test non-Ajax forms with it?&lt;/p&gt;&lt;p&gt;I tried to do that, but I cannot find the url of the second form (I need to know it in order to test if the test is successful or not)&lt;/p&gt;&lt;p&gt;Thank you!&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Test using LTAF without altering the database</title><link>http://forums.asp.net/thread/3377280.aspx</link><pubDate>Sun, 30 Aug 2009 13:27:31 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3377280</guid><dc:creator>fabiomilheiro</dc:creator><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3377280.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1193&amp;PostID=3377280</wfw:commentRss><description>&lt;p&gt;When I set a test using LTAF and order a click on the submit button, it is as if I had really altered the database. How can we test the application without updating the database as with unit tests (although I realize LTAF and unit tests are really not the same thing).&lt;/p&gt;&lt;p&gt;Thank you!&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Error with Theme</title><link>http://forums.asp.net/thread/3333700.aspx</link><pubDate>Thu, 06 Aug 2009 15:39:14 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3333700</guid><dc:creator>cwlaualex</dc:creator><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/3333700.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1193&amp;PostID=3333700</wfw:commentRss><description>&lt;p&gt;I have problem with setting up my test initially. The test page seems not working probably with my default website if theme is enabled. Is there any setting that I&amp;#39;ve missed?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Hooking a RadPane?</title><link>http://forums.asp.net/thread/3311596.aspx</link><pubDate>Fri, 24 Jul 2009 17:03:50 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3311596</guid><dc:creator>AikiBushi</dc:creator><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/3311596.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1193&amp;PostID=3311596</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I am trying to hook a RadPane object. &lt;/p&gt;
&lt;p&gt;This is rendered as a Frame but with no Frameset. I have tried to hook it unsuccessfully&amp;nbsp;like this:&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;pre class="c-sharp" name="code"&gt;HtmlPage ws = launchPage.GetPopupPage(1);
HtmlPage nav = ws.GetFramePage(&amp;quot;NavPane&amp;quot;);&lt;/pre&gt;&lt;pre class="c-sharp" name="code"&gt;But this does not return the NavPane frameset.&lt;/pre&gt;&lt;pre class="c-sharp" name="code"&gt;What do I need to do to get this working? This seems to be the final hurdle, albeit a large one...&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Get the active window?</title><link>http://forums.asp.net/thread/3308341.aspx</link><pubDate>Wed, 22 Jul 2009 18:35:39 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3308341</guid><dc:creator>AikiBushi</dc:creator><slash:comments>3</slash:comments><comments>http://forums.asp.net/thread/3308341.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1193&amp;PostID=3308341</wfw:commentRss><description>&lt;p&gt;&amp;nbsp; The application that I am automating spawns several popups, sometimes more than once at a time, and not always in the expected order. Is there a way to get the (HtmlPage) popup? This would help tremendously if possible.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks &lt;/p&gt;</description></item><item><title>Can not hook Window.Open Popups</title><link>http://forums.asp.net/thread/3306616.aspx</link><pubDate>Tue, 21 Jul 2009 16:28:49 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3306616</guid><dc:creator>AikiBushi</dc:creator><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/3306616.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1193&amp;PostID=3306616</wfw:commentRss><description>&lt;p&gt;&amp;nbsp; I am writing automation for an app that uses lots of popups. Each of these poups are launched via javascript window.open(). However, I can not seem to hook them (using HtmlPage popup = parent.GetPopupPage(1)) &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;any idea how to work around this? &lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Using LTAF to automate a page with frames.</title><link>http://forums.asp.net/thread/3103061.aspx</link><pubDate>Mon, 20 Apr 2009 02:12:32 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3103061</guid><dc:creator>farmas</dc:creator><slash:comments>12</slash:comments><comments>http://forums.asp.net/thread/3103061.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1193&amp;PostID=3103061</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;(ported from CodePlex)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am evaluating this framework with my application and so far I am not able to use it for the reason mentioned below:&lt;/p&gt;
&lt;p&gt;My application has UI framework consisting of frames. Also, lots of
UI related common info like height, width, top level navigation links
etc is part of top level frame. And this info is being reffered in
child frames/pages as &amp;quot;top.variable&amp;quot; or &amp;quot;top.function&amp;quot; etc. &lt;/p&gt;
&lt;p&gt;If I use this LTA framework, my top level frame is replaced by a
frame from this LTAF frame. Clearly, the info that my app is looking
for is not a part of LTA Framework and hence it ends up with lots of
script errors. &lt;/p&gt;
&lt;p&gt;Changing my app would not be feasible because of the large scope of the changes, probably entire app.&lt;/p&gt;
&lt;p&gt;Does anyone has any idea/comment on resolving this issue with minimal changes in LTA Framework itself?&lt;/p&gt;</description></item><item><title>Error when trying to use LTAF on a website that is not in the same solution.</title><link>http://forums.asp.net/thread/3173690.aspx</link><pubDate>Tue, 19 May 2009 21:31:05 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3173690</guid><dc:creator>brett.a.rose</dc:creator><slash:comments>5</slash:comments><comments>http://forums.asp.net/thread/3173690.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1193&amp;PostID=3173690</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I get this error when I try to run the LTAF tests against a website that is not in the same solution as the tests.&lt;/p&gt;</description></item><item><title>How to get Html in a &lt;p&gt; tag.</title><link>http://forums.asp.net/thread/3179759.aspx</link><pubDate>Fri, 22 May 2009 02:08:08 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3179759</guid><dc:creator>farmas</dc:creator><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3179759.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1193&amp;PostID=3179759</wfw:commentRss><description>&lt;p&gt;&lt;i&gt;&amp;nbsp;Ported from CodePlex.&lt;/i&gt;&lt;/p&gt;&lt;p&gt;&amp;quot;I want to get html in a tag &amp;lt;p&amp;gt;. How to?&lt;/p&gt;
&lt;p&gt;Please help me!&amp;quot;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Custom User controls</title><link>http://forums.asp.net/thread/3172433.aspx</link><pubDate>Tue, 19 May 2009 11:49:01 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3172433</guid><dc:creator>akisasp</dc:creator><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/3172433.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1193&amp;PostID=3172433</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;first of all congratulations for a really nice work.&lt;/p&gt;&lt;p&gt;Could you please give me an example how to test pages that contain custom user controls?&lt;/p&gt;&lt;p&gt;Thannks &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Firefox Compatability</title><link>http://forums.asp.net/thread/3170969.aspx</link><pubDate>Mon, 18 May 2009 21:06:32 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3170969</guid><dc:creator>brett.a.rose</dc:creator><slash:comments>6</slash:comments><comments>http://forums.asp.net/thread/3170969.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1193&amp;PostID=3170969</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;&amp;nbsp;I have notices that any time I try to run the tests in firefox it throws an error. I was wondering if there will be some compatibility with firefox in the future... &lt;br /&gt;&lt;/p&gt;</description></item><item><title>How can I find child elements of iFrame which is an element of the page?</title><link>http://forums.asp.net/thread/3139423.aspx</link><pubDate>Mon, 04 May 2009 19:21:46 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3139423</guid><dc:creator>FRMJiggs</dc:creator><slash:comments>5</slash:comments><comments>http://forums.asp.net/thread/3139423.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1193&amp;PostID=3139423</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can anyone help me with the way to find any child element of the iFrame control?&lt;/p&gt;
&lt;p&gt;All&amp;nbsp;I can get is the Iframe control itself but its child elements count is 0.&lt;/p&gt;
&lt;p&gt;iFrame control is being navigated dynamically, i.e. based on user action on the page.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Jignesh&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>How to create a custom logger</title><link>http://forums.asp.net/thread/3142344.aspx</link><pubDate>Tue, 05 May 2009 17:14:49 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3142344</guid><dc:creator>clarkham</dc:creator><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3142344.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1193&amp;PostID=3142344</wfw:commentRss><description>&lt;p&gt;I have a need to create an xml file with my test results so another tool can read it.&amp;nbsp; Can you give an example of how a custom log writer might be plugged into the framework.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks.&lt;/p&gt;</description></item><item><title>Quick Example of my adapter based testing approach</title><link>http://forums.asp.net/thread/3053247.aspx</link><pubDate>Wed, 01 Apr 2009 00:08:12 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3053247</guid><dc:creator>mcowan</dc:creator><slash:comments>6</slash:comments><comments>http://forums.asp.net/thread/3053247.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1193&amp;PostID=3053247</wfw:commentRss><description>&lt;p&gt;I have not found the time to create a sample project to show off the adapters, I still plan on doing it ( I was thinking that I would simply restructure the Microsoft.Web.Testing.Light.Sample project provided by the ASP.NET QA Team. That way you can see the adapters before and after, like having the tests side-by-side.&lt;/p&gt;
&lt;p&gt;Anyway, because its taking so long, I thought I would toss up some examples of how the adapters are used here. We are making our framework open for Devs to use, so I created a FrameworkExamples&amp;nbsp;Class to hold a bunch of example tests.&amp;nbsp; I thought I would paste that up and see what you think.&lt;/p&gt;
&lt;p&gt;If there is intrest, I can zip up my test project so you can see the code (won&amp;#39;t compile for you and uses some proprietary APIs that I can&amp;#39;t distribute) .. but if there is intrest you can walk the code to see how its organized. Anyway .. here is several test methods.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="coloredcode"&gt;&lt;span class="kwd"&gt;using&lt;/span&gt; Microsoft.Web.Testing.Light;
&lt;span class="kwd"&gt;using&lt;/span&gt; UITestWeb.Library.Framework;
&lt;span class="kwd"&gt;using&lt;/span&gt; UITestWeb.Library.Tests.ConsumerWeb.Adapters;
&lt;span class="kwd"&gt;using&lt;/span&gt; UITestWeb.Library.Tests.ConsumerWeb.Adapters.Assets;

&lt;span class="kwd"&gt;namespace&lt;/span&gt; UITestWeb.Library.Tests.ConsumerWeb
{
    &lt;span class="cmt"&gt;/// &amp;amp;lt;summary&amp;amp;gt;
    /// Contains a series of ConsumerWeb based automation examples that show off various
    /// features of the testing framework.
    /// &amp;lt;/summary&amp;gt;
    /// &amp;lt;remarks&amp;gt;
    /// The StartPage for this test class is the default Home Page
    /// &amp;lt;/remarks&amp;gt;&lt;/span&gt;
    [WebTestClass]
    &lt;span class="kwd"&gt;public class&lt;/span&gt; FrameworkExamples : ConsumerWebTest
    {
        &lt;span class="kwd"&gt;#region&lt;/span&gt;&lt;span class="kwdt"&gt; Properties&lt;/span&gt;

        &lt;span class="cmt"&gt;/// &amp;lt;summary&amp;gt;
        /// The &amp;lt;see cref=&amp;quot;HomeAdapter&amp;quot;/&amp;gt; representing the startup page for the tests in
        /// this class.
        /// &amp;lt;/summary&amp;gt;&lt;/span&gt;
        &lt;span class="kwd"&gt;public new&lt;/span&gt; HomeAdapter StartPageAdapter
        {
            &lt;span class="cmt"&gt;//TODO Remove this clumsy logic when we get the new TestSetup functionality &lt;/span&gt;
            &lt;span class="kwd"&gt;get&lt;/span&gt;
            {
                &lt;span class="kwd"&gt;return&lt;/span&gt; (HomeAdapter)&lt;span class="kwd"&gt;base&lt;/span&gt;.StartPageAdapter;
            }
        }

        &lt;span class="kwd"&gt;#endregion

        #region&lt;/span&gt;&lt;span class="kwdt"&gt; Contructor&lt;/span&gt;

        &lt;span class="cmt"&gt;/// &amp;lt;summary&amp;gt;
        /// Constructor
        /// &amp;lt;/summary&amp;gt;&lt;/span&gt;
        &lt;span class="kwd"&gt;public&lt;/span&gt; FrameworkExamples()
            : &lt;span class="kwd"&gt;base&lt;/span&gt;(&lt;span class="kwd"&gt;new&lt;/span&gt; HomeAdapter()) { }
        
        &lt;span class="kwd"&gt;#endregion

        #region&lt;/span&gt;&lt;span class="kwdt"&gt; Tests&lt;/span&gt;

        &lt;span class="cmt"&gt;/// &amp;lt;summary&amp;gt;
        /// Shows how each specific AssetType Adapter exposes a list of common ContentId&amp;#39;s
        /// that you can access easily from inside your tests.
        /// &amp;lt;/summary&amp;gt;&lt;/span&gt;
        [WebTestMethod]
        [WebTestTag(WebTestCategoryTag.Example)]
        &lt;span class="kwd"&gt;public void&lt;/span&gt; Example_LoadCommonHealthConditionAssets()
        {
            &lt;span class="cmt"&gt;// Step 1: Setup the Test&lt;/span&gt;
            TestSetup();

            &lt;span class="cmt"&gt;// Step 2: Create the PageAdapters you will use during the test.
            //         Notice you can use the Enum Class CommonHealthConditionContentIds
            //         and get a readable list of Common HealthCondtions to pick from.&lt;/span&gt;
            var healthConditionAdapter = &lt;span class="kwd"&gt;new&lt;/span&gt; HealthConditionAdapter(CommonHealthConditionContentIds.Asthma);

            &lt;span class="cmt"&gt;// Step 3: Perform your test&lt;/span&gt;
            healthConditionAdapter.NavigateTo();

            &lt;span class="cmt"&gt;//Step 4: Validate your results using an Assert&lt;/span&gt;
            Assert.IsTrue(healthConditionAdapter.IsLoadedWithNoErrors());
        }

        &lt;span class="cmt"&gt;/// &amp;lt;summary&amp;gt;
        /// Shows how you can load an any asset if you know its ContentId
        /// &amp;lt;/summary&amp;gt;&lt;/span&gt;
        [WebTestMethod]
        [WebTestTag(WebTestCategoryTag.Example)]
        &lt;span class="kwd"&gt;public void&lt;/span&gt; Example_LoadAnyAssetByContentId()
        {
            &lt;span class="cmt"&gt;// Step 1: Setup the Test&lt;/span&gt;
            TestSetup();

            &lt;span class="cmt"&gt;// Step 2: Create the PageAdapters you will use during the test.
            //         Notice you can use the base AssetAdapter and directly
            //         pass a ContentId as a string.&lt;/span&gt;
            var assetAdapter = &lt;span class="kwd"&gt;new&lt;/span&gt; AssetAdapter(&lt;span class="st"&gt;&amp;quot;1064006&amp;quot;&lt;/span&gt;);

            &lt;span class="cmt"&gt;// Step 3: Perform your test&lt;/span&gt;
            assetAdapter.NavigateTo();

            &lt;span class="cmt"&gt;//Step 4: Validate your results using an Assert&lt;/span&gt;
            Assert.IsTrue(assetAdapter.IsLoadedWithNoErrors());
        }

        &lt;span class="cmt"&gt;/// &amp;lt;summary&amp;gt;
        /// Shows examples of how to interface with the SeeAlso UI Element.
        /// &amp;lt;/summary&amp;gt;&lt;/span&gt;
        [WebTestMethod]
        [WebTestTag(WebTestCategoryTag.Example)]
        &lt;span class="kwd"&gt;public void&lt;/span&gt; Example_InteractWithSeeAlsoUIElement()
        {
            TestSetup();

            var type2DiabetesAdapter = &lt;span class="kwd"&gt;new&lt;/span&gt; HealthConditionAdapter(CommonHealthConditionContentIds.Type2Diabetes);
            type2DiabetesAdapter.NavigateTo();

            &lt;span class="cmt"&gt;// You can get the main title of the SeeAlso container&lt;/span&gt;
            var seeAlsoTitle = type2DiabetesAdapter.SeeAlso.ContainerTitle;
            Assert.StringIsNotNullOrEmpty(seeAlsoTitle,&lt;span class="st"&gt;&amp;quot;SeeAlso Title was NullOrEmpty&amp;quot;&lt;/span&gt;);
            Assert.IsTrue(seeAlsoTitle == &lt;span class="st"&gt;&amp;quot;See also&amp;quot;&lt;/span&gt;, &lt;span class="st"&gt;&amp;quot;SeeAlso Title was not the expected string.&amp;quot;&lt;/span&gt;);

            &lt;span class="cmt"&gt;// You can count how many items are in the SeeAlso container.&lt;/span&gt;
            var seeAlsoCount = type2DiabetesAdapter.SeeAlso.Count;
            Assert.IsTrue(seeAlsoCount &amp;gt; 0, &lt;span class="st"&gt;&amp;quot;SeeAlso Count was not greater than 0&amp;quot;&lt;/span&gt;);

            &lt;span class="cmt"&gt;// You can test an item by its index position&lt;/span&gt;
            var itemByIndex = type2DiabetesAdapter.SeeAlso.ClickableContentItems[0];
            Assert.StringIsNotNullOrEmpty(itemByIndex.Title, &lt;span class="st"&gt;&amp;quot;The Items Title was NullOrEmpty&amp;quot;&lt;/span&gt;);

            &lt;span class="cmt"&gt;// You can test an item by using its TargetContentId as the key.
            // RiskFactorsForDiabetes = ContentId: 3744001&lt;/span&gt;
            var itemByKey = type2DiabetesAdapter.SeeAlso.ClickableContentItems[&lt;span class="st"&gt;&amp;quot;3744001&amp;quot;&lt;/span&gt;];
            Assert.StringIsNotNullOrEmpty(itemByKey.Title, &lt;span class="st"&gt;&amp;quot;The Items Title was NullOrEmpty&amp;quot;&lt;/span&gt;);
        }

        &lt;span class="cmt"&gt;/// &amp;lt;summary&amp;gt;
        /// Shows example of how to loop the SeeAlso UI Element and validate each items is valid.
        /// &amp;lt;/summary&amp;gt;&lt;/span&gt;
        [WebTestMethod]
        [WebTestTag(WebTestCategoryTag.Example)]
        &lt;span class="kwd"&gt;public void&lt;/span&gt; Example_ValidateAllSeeAlsoItems()
        {
            &lt;span class="cmt"&gt;// Step 1: Setup the Test&lt;/span&gt;
            TestSetup();

            &lt;span class="cmt"&gt;// Step 2: Create the PageAdapters you will use during the test.&lt;/span&gt;
            var type2DiabetesAdapter = &lt;span class="kwd"&gt;new&lt;/span&gt; HealthConditionAdapter(CommonHealthConditionContentIds.Type2Diabetes);

            &lt;span class="cmt"&gt;// Step 3: Perform your test
            //         This test loops through all the items in the See Also UI Element. Each
            //         item is clicked and we verify the correct asset loaded.&lt;/span&gt;
            type2DiabetesAdapter.NavigateTo();
            &lt;span class="kwd"&gt;foreach&lt;/span&gt; (var relatedItem &lt;span class="kwd"&gt;in&lt;/span&gt; type2DiabetesAdapter.SeeAlso.ClickableContentItems)
            {
                type2DiabetesAdapter.NavigateTo();
                relatedItem.Link.Click(WaitFor.Postback);

                &lt;span class="cmt"&gt;//Step 4: Validate your results using an Assert
                //        Notice how you can create quick temp Adapters to validate navigation
                //        tests by using the relatedItems TargetContentId. This is a very common
                //        test pattern.&lt;/span&gt;
                Assert.IsTrue((&lt;span class="kwd"&gt;new&lt;/span&gt; AssetAdapter(relatedItem.TargetContentId).IsLoadedWithNoErrors()));
            }
        }

        &lt;span class="cmt"&gt;/// &amp;lt;summary&amp;gt;
        /// Shows how you can access the Main Content of an asset.
        /// &amp;lt;/summary&amp;gt;&lt;/span&gt;
        [WebTestMethod]
        [WebTestTag(WebTestCategoryTag.Example)]
        &lt;span class="kwd"&gt;public void&lt;/span&gt; Example_CheckForStringInContentArea()
        {
            &lt;span class="cmt"&gt;// Step 1: Setup the Test&lt;/span&gt;
            TestSetup();

            &lt;span class="cmt"&gt;// Step 2: Create the PageAdapters you will use during the test.
            //         Notice you can use the Enum Class CommonHealthConditionContentIds
            //         and get a readable list of Common HealthCondtions to pick from.&lt;/span&gt;
            var healthConditionAdapter = &lt;span class="kwd"&gt;new&lt;/span&gt; HealthConditionAdapter(CommonHealthConditionContentIds.Type2Diabetes);

            &lt;span class="cmt"&gt;// Step 3: Perform your test&lt;/span&gt;
            healthConditionAdapter.NavigateTo();
            var rawContentHtml = healthConditionAdapter.MainContent.ContainerElement.GetInnerHtml();
            &lt;span class="kwd"&gt;const string&lt;/span&gt; searchText = &lt;span class="st"&gt;&amp;quot;diabetes&amp;quot;&lt;/span&gt;;

            &lt;span class="cmt"&gt;//Step 4: Validate your results using an Assert
            //        Asserts always display thier parameters in the log when they
            //        fail. Because the content for an asset can get quite long
            //        it sometimes makes sense to do a &amp;#39;pre-test&amp;#39; before the assert.&lt;/span&gt;
            var containsText = rawContentHtml.Contains(searchText);
            Assert.IsTrue(containsText, &lt;span class="st"&gt;&amp;quot;Expected Content to contain the word :&amp;quot;&lt;/span&gt; + searchText);
        }

        &lt;span class="cmt"&gt;/// &amp;lt;summary&amp;gt;
        /// Shows examples of how to interact with the list of items in a TOC
        /// &amp;lt;/summary&amp;gt;&lt;/span&gt;
        [WebTestMethod]
        [WebTestTag(WebTestCategoryTag.Example)]
        &lt;span class="kwd"&gt;public void&lt;/span&gt; Example_InteractWithTocItems()
        {
            TestSetup();

            var tocAdapter = &lt;span class="kwd"&gt;new&lt;/span&gt; TocAdapter(CommonTocContentIds.DiabetesHealthCenter);
            tocAdapter.NavigateTo();

            &lt;span class="cmt"&gt;// You can get the main title for this TOC Page&lt;/span&gt;
            var title = tocAdapter.Title;
            Assert.StringIsNotNullOrEmpty(title, &lt;span class="st"&gt;&amp;quot;Title was NullOrEmpty&amp;quot;&lt;/span&gt;);

            &lt;span class="cmt"&gt;// You can count how many items are in the Toc container.&lt;/span&gt;
            var count = tocAdapter.TocContainer.Count;
            Assert.IsTrue(count &amp;gt; 0, &lt;span class="st"&gt;&amp;quot;TOC Count was not greater than 0&amp;quot;&lt;/span&gt;);

            &lt;span class="cmt"&gt;// You can test an item by its index position&lt;/span&gt;
            var itemByIndex = tocAdapter.TocContainer.ClickableContentItems[0];
            Assert.StringIsNotNullOrEmpty(itemByIndex.Title, &lt;span class="st"&gt;&amp;quot;The Items Title was NullOrEmpty&amp;quot;&lt;/span&gt;);

            &lt;span class="cmt"&gt;// You can test an item by using its TargetContentId as the key.&lt;/span&gt;
            var itemByKey = tocAdapter.TocContainer.ClickableContentItems[CommonHealthConditionContentIds.Type2Diabetes];
            Assert.StringIsNotNullOrEmpty(itemByKey.Title, &lt;span class="st"&gt;&amp;quot;The Items Title was NullOrEmpty&amp;quot;&lt;/span&gt;);

            &lt;span class="cmt"&gt;// You can click an item and validate it loaded the correct page.&lt;/span&gt;
            var clickableContentItem = tocAdapter.TocContainer.ClickableContentItems[0];
            clickableContentItem.Link.Click(WaitFor.Postback);
            Assert.IsTrue((&lt;span class="kwd"&gt;new&lt;/span&gt; AssetAdapter(clickableContentItem.TargetContentId)).IsLoadedWithNoErrors());
        }

        &lt;span class="cmt"&gt;/// &amp;lt;summary&amp;gt;
        /// Shows examples of how to interact the GlobalNav Buttons
        /// &amp;lt;/summary&amp;gt;&lt;/span&gt;
        [WebTestMethod]
        [WebTestTag(WebTestCategoryTag.Example)]
        &lt;span class="kwd"&gt;public void&lt;/span&gt; Example_InteractWithGlobalNav()
        {
            TestSetup();

            var type2DiabetesAdapter = &lt;span class="kwd"&gt;new&lt;/span&gt; HealthConditionAdapter(CommonHealthConditionContentIds.Type2Diabetes);
            type2DiabetesAdapter.NavigateTo();

            &lt;span class="cmt"&gt;// Note: All the GlobalNav UI Elements are located in the base ConsumerWebAdapter
            // This means you have access to them from all derived adapters.
            
            // Open the ShoppingList from any adapter.&lt;/span&gt;
            type2DiabetesAdapter.ShoppingListControl.Click(WaitFor.Postback);
            Assert.IsTrue(&lt;span class="kwd"&gt;new&lt;/span&gt; ShoppingListAdapter().IsLoadedWithNoErrors());

            &lt;span class="cmt"&gt;// Click Home Button from Any Adapter&lt;/span&gt;
            type2DiabetesAdapter.HomeButton.Click();
            Assert.IsTrue(&lt;span class="kwd"&gt;new&lt;/span&gt; HomeAdapter().IsLoadedWithNoErrors());

            type2DiabetesAdapter.NavigateTo();

            &lt;span class="cmt"&gt;// Click a TopNavButton By Index&lt;/span&gt;
            var topNavButtonByIndex = type2DiabetesAdapter.TopNavButtons.ClickableContentItems[0];
            topNavButtonByIndex.Link.Click(WaitFor.Postback);
            Assert.IsTrue((&lt;span class="kwd"&gt;new&lt;/span&gt; AssetAdapter(topNavButtonByIndex.TargetContentId)).IsLoadedWithNoErrors());
        }

        &lt;span class="cmt"&gt;/// &amp;lt;summary&amp;gt;
        /// Shows example of how to loop through all the TopNav Buttons and
        /// verify each one opens the correct contet.
        /// &amp;lt;/summary&amp;gt;&lt;/span&gt;
        [WebTestMethod]
        [WebTestTag(WebTestCategoryTag.Example)]
        &lt;span class="kwd"&gt;public void&lt;/span&gt; Example_ValidateAllGlobalTopNavButtons()
        {
            &lt;span class="cmt"&gt;// Step 1: Setup the Test&lt;/span&gt;
            TestSetup();

            &lt;span class="cmt"&gt;// Step 2: Create the PageAdapters you will use during the test.
            //         Do not need an additional Adapter.

            // Step 3: Perform your test
            //         This test loops through all the NavButtons in both the TopNav and TopNavFlyOut
            //         containters for the current Entity/Product/Department combination loaded. Each
            //         item is clicked and we verify the correct asset loaded.&lt;/span&gt;
            &lt;span class="kwd"&gt;foreach&lt;/span&gt; (var navButton &lt;span class="kwd"&gt;in&lt;/span&gt; StartPageAdapter.TopNavButtons.ClickableContentItems)
            {
                StartPageAdapter.NavigateTo();
                navButton.Link.Click(WaitFor.Postback);

                &lt;span class="cmt"&gt;//Step 4: Validate your results using an Assert
                //        Notice how you can create quick temp Adapters to validate navigation
                //        tests by using the TargetContentId. This is a very common test pattern.&lt;/span&gt;
                Assert.IsTrue((&lt;span class="kwd"&gt;new&lt;/span&gt; AssetAdapter(navButton.TargetContentId).IsLoadedWithNoErrors()));
            }
        }

        &lt;span class="cmt"&gt;/// &amp;lt;summary&amp;gt;
        /// Shows example 
        /// &amp;lt;/summary&amp;gt;&lt;/span&gt;
        [WebTestMethod]
        [WebTestTag(WebTestCategoryTag.Example)]
        &lt;span class="kwd"&gt;public void&lt;/span&gt; Example_SimulateUpcScanning()
        {
            &lt;span class="cmt"&gt;// Step 1: Setup the Test&lt;/span&gt;
            TestSetup();

            &lt;span class="cmt"&gt;// Step 2: Create the PageAdapters you will use during the test.
            //         No Additional Adapter Needed

            // Step 3: Perform your test
            //         Note: TestUPC: 2222222222 -&amp;gt; ContentId:10002725
            //         Note: TestUPC: 048107085421 -&amp;gt; ContentId:10002724&lt;/span&gt;
            StartPageAdapter.SimulateScan(&lt;span class="st"&gt;&amp;quot;048107085421&amp;quot;&lt;/span&gt;);

            &lt;span class="cmt"&gt;//Step 4: Validate your results using an Assert&lt;/span&gt;
            Assert.IsTrue((&lt;span class="kwd"&gt;new&lt;/span&gt; AssetAdapter(&lt;span class="st"&gt;&amp;quot;10002724&amp;quot;&lt;/span&gt;).IsLoadedWithNoErrors()));
        }

        &lt;span class="kwd"&gt;#endregion&lt;/span&gt;
    }
}&lt;/pre&gt;&amp;nbsp;</description></item></channel></rss>