<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Selenium Testing of massive Ajax Apps</title>
	<atom:link href="http://www.agimatec.de/blog/2008/08/selenium-testing-of-massive-ajax-apps/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.agimatec.de/blog/2008/08/selenium-testing-of-massive-ajax-apps/</link>
	<description>Clash of realities</description>
	<lastBuildDate>Fri, 05 Feb 2010 17:56:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Frank Cohen</title>
		<link>http://www.agimatec.de/blog/2008/08/selenium-testing-of-massive-ajax-apps/comment-page-1/#comment-488</link>
		<dc:creator>Frank Cohen</dc:creator>
		<pubDate>Thu, 22 Oct 2009 15:58:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.agimatec.de/blog/?p=247#comment-488</guid>
		<description>Hi Simon: Thank you for the excellent article. PushToTest provides professional technical support for Selenium. Many of our customers are dealing with Ajax applications. Your article presents a great method for overcoming Ajax issues in a Selenium context. -Frank</description>
		<content:encoded><![CDATA[<p>Hi Simon: Thank you for the excellent article. PushToTest provides professional technical support for Selenium. Many of our customers are dealing with Ajax applications. Your article presents a great method for overcoming Ajax issues in a Selenium context. -Frank</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Tiffert</title>
		<link>http://www.agimatec.de/blog/2008/08/selenium-testing-of-massive-ajax-apps/comment-page-1/#comment-487</link>
		<dc:creator>Simon Tiffert</dc:creator>
		<pubDate>Mon, 19 Oct 2009 06:58:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.agimatec.de/blog/?p=247#comment-487</guid>
		<description>Hello,

indeed a strange behaviour.

Let me understand your code:
- in the first Assert.isTrue you check if there is the button. But it is normally not there, that&#039;s why you want to step into the waiting loop. But doesn&#039;t the failing assert stop the execution flow?
- The waiting loop seems to be all right and if there is no failure and the button appears in the time range, the button is clicked. But this is also checked with the first statement, in the other I think we would&#039;t reach that point.

If the asserts are ignored you could end up with a button click without a real button on the screen. But that is just an assumption. I also have no clue what the &quot;unspecified error&quot; is. Hope you can resolve your problems.

Cheers
Simon</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>indeed a strange behaviour.</p>
<p>Let me understand your code:<br />
- in the first Assert.isTrue you check if there is the button. But it is normally not there, that&#8217;s why you want to step into the waiting loop. But doesn&#8217;t the failing assert stop the execution flow?<br />
- The waiting loop seems to be all right and if there is no failure and the button appears in the time range, the button is clicked. But this is also checked with the first statement, in the other I think we would&#8217;t reach that point.</p>
<p>If the asserts are ignored you could end up with a button click without a real button on the screen. But that is just an assumption. I also have no clue what the &#8220;unspecified error&#8221; is. Hope you can resolve your problems.</p>
<p>Cheers<br />
Simon</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ajax</title>
		<link>http://www.agimatec.de/blog/2008/08/selenium-testing-of-massive-ajax-apps/comment-page-1/#comment-485</link>
		<dc:creator>ajax</dc:creator>
		<pubDate>Wed, 14 Oct 2009 22:16:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.agimatec.de/blog/?p=247#comment-485</guid>
		<description>//Next Button
                string btnNext = &quot;btnStep3Next&quot;;
                Assert.IsTrue(selenium.IsElementPresent(btnNext), &quot;Next Button is not found&quot;);
                SeleniumUtil.WaitForElement(selenium, btnNext, 60);
                selenium.Click(btnNext);

public static void WaitForElement(ISelenium selenium, string elementId, int timeout)
        {
            // Loop initialization.
            for (int second = 0; ; second++)
            {
                    if (second &gt;= timeout)
                    Assert.Fail(String.Format(&quot;Waiting for Element {0} timed out.&quot;, elementId));
                try
                {
                    //Search for element and if available then break loop.
                    if (selenium.IsElementPresent(elementId)) break;
                }
                catch (Exception)
                { }

                //pause for one second
                Thread.Sleep(1000);
            }

ErrorMessage:
click[btnNext, ] on session 058d1db6d44847258753cada7bb83704
11:55:12.685 INFO – Got result: ERROR: Command execution failure. Please search the forum at http://clearspace.openqa.org for error details from the log window. The error message is: Unspecified error. on session 058d1db6d44847258753cada7bb83704</description>
		<content:encoded><![CDATA[<p>//Next Button<br />
                string btnNext = &#8220;btnStep3Next&#8221;;<br />
                Assert.IsTrue(selenium.IsElementPresent(btnNext), &#8220;Next Button is not found&#8221;);<br />
                SeleniumUtil.WaitForElement(selenium, btnNext, 60);<br />
                selenium.Click(btnNext);</p>
<p>public static void WaitForElement(ISelenium selenium, string elementId, int timeout)<br />
        {<br />
            // Loop initialization.<br />
            for (int second = 0; ; second++)<br />
            {<br />
                    if (second &gt;= timeout)<br />
                    Assert.Fail(String.Format(&#8220;Waiting for Element {0} timed out.&#8221;, elementId));<br />
                try<br />
                {<br />
                    //Search for element and if available then break loop.<br />
                    if (selenium.IsElementPresent(elementId)) break;<br />
                }<br />
                catch (Exception)<br />
                { }</p>
<p>                //pause for one second<br />
                Thread.Sleep(1000);<br />
            }</p>
<p>ErrorMessage:<br />
click[btnNext, ] on session 058d1db6d44847258753cada7bb83704<br />
11:55:12.685 INFO – Got result: ERROR: Command execution failure. Please search the forum at <a href="http://clearspace.openqa.org" rel="nofollow">http://clearspace.openqa.org</a> for error details from the log window. The error message is: Unspecified error. on session 058d1db6d44847258753cada7bb83704</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ajax</title>
		<link>http://www.agimatec.de/blog/2008/08/selenium-testing-of-massive-ajax-apps/comment-page-1/#comment-484</link>
		<dc:creator>ajax</dc:creator>
		<pubDate>Wed, 14 Oct 2009 22:13:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.agimatec.de/blog/?p=247#comment-484</guid>
		<description>I am using WaitForElement for all contorls. But still when i run my test i am getting following errormessage. 

For ex: while clicking button, i am getting below error message:

click[btnNext, ] on session 058d1db6d44847258753cada7bb83704
11:55:12.685 INFO - Got result: ERROR: Command execution failure. Please search the forum at http://clearspace.openqa.org for error details from the log window.  The error message is: Unspecified error. on session 058d1db6d44847258753cada7bb83704

This happens for contols like button, sometimes radio button, sometimes checkboxes.

Please Help!!!!!!!!!!!</description>
		<content:encoded><![CDATA[<p>I am using WaitForElement for all contorls. But still when i run my test i am getting following errormessage. </p>
<p>For ex: while clicking button, i am getting below error message:</p>
<p>click[btnNext, ] on session 058d1db6d44847258753cada7bb83704<br />
11:55:12.685 INFO &#8211; Got result: ERROR: Command execution failure. Please search the forum at <a href="http://clearspace.openqa.org" rel="nofollow">http://clearspace.openqa.org</a> for error details from the log window.  The error message is: Unspecified error. on session 058d1db6d44847258753cada7bb83704</p>
<p>This happens for contols like button, sometimes radio button, sometimes checkboxes.</p>
<p>Please Help!!!!!!!!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Tiffert</title>
		<link>http://www.agimatec.de/blog/2008/08/selenium-testing-of-massive-ajax-apps/comment-page-1/#comment-483</link>
		<dc:creator>Simon Tiffert</dc:creator>
		<pubDate>Sun, 11 Oct 2009 21:35:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.agimatec.de/blog/?p=247#comment-483</guid>
		<description>Hello Stephen,

these functions are code I run with Selenium RC. I think you could also extend the Selenium IDE but then you have to extend the Javascript files with corresponding code. 
Because we run our tests as automated tests, Selenium RC is the best choice for us. In this way we could include the tests in TestNG (or JUnit) and simple run it in different browsers.

Hope that helps. If you have questions about the setup, don&#039;t hesitate to contact me.

Cheers
Simon</description>
		<content:encoded><![CDATA[<p>Hello Stephen,</p>
<p>these functions are code I run with Selenium RC. I think you could also extend the Selenium IDE but then you have to extend the Javascript files with corresponding code.<br />
Because we run our tests as automated tests, Selenium RC is the best choice for us. In this way we could include the tests in TestNG (or JUnit) and simple run it in different browsers.</p>
<p>Hope that helps. If you have questions about the setup, don&#8217;t hesitate to contact me.</p>
<p>Cheers<br />
Simon</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen</title>
		<link>http://www.agimatec.de/blog/2008/08/selenium-testing-of-massive-ajax-apps/comment-page-1/#comment-482</link>
		<dc:creator>Stephen</dc:creator>
		<pubDate>Tue, 06 Oct 2009 20:56:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.agimatec.de/blog/?p=247#comment-482</guid>
		<description>How are you using this?  Are you using these new functions as par of the IDE or RC?  If you are using it as part of IDE, how is the FF extension recognizing your customized code?

Thanks for the help!

Stephen</description>
		<content:encoded><![CDATA[<p>How are you using this?  Are you using these new functions as par of the IDE or RC?  If you are using it as part of IDE, how is the FF extension recognizing your customized code?</p>
<p>Thanks for the help!</p>
<p>Stephen</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.agimatec.de/blog/2008/08/selenium-testing-of-massive-ajax-apps/comment-page-1/#comment-427</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Tue, 14 Jul 2009 05:25:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.agimatec.de/blog/?p=247#comment-427</guid>
		<description>Excellent.
~ T</description>
		<content:encoded><![CDATA[<p>Excellent.<br />
~ T</p>
]]></content:encoded>
	</item>
</channel>
</rss>
