﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" 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/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - IsInProgress</title><link>http://www.intersoftsolutions.com/Community/Tags/IsInProgress/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>How to verify a page is loaded in Javascript</title><link>http://www.intersoftsolutions.com/Community/Tags/IsInProgress/</link><pubDate>Tue, 10 Feb 2015 16:41:45 GMT</pubDate><dc:creator>Zakmtl</dc:creator><category>IsLoaded</category><category>IsInProgress</category><category>Javscript</category><description>&lt;p&gt;Hello All;&lt;/p&gt;&lt;p&gt;I want to verify that a specific row exists in a grid using javascript only for QA testing purposes ( the grid might have several pages), I am using the following steps;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;var grid = window.ISGetObject(GridId());&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;var bfound=false;&lt;/p&gt;&lt;p&gt;var bfound=VerifyRowExistsInPage(Expectedrow); //this function verify all rows in the open active page and returns True if the row exist in the page false if not.&lt;/p&gt;&lt;p&gt;if (bfound){&lt;/p&gt;&lt;p&gt;return true; //if the row is found I exist the function&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;//if not I loop throw all pages of the grid until the expected row is found or I reach the last row of the grid&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; currentPage = grid.CurrentPageIndex;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; totalpages = grid.TotalPages;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;	&lt;/span&gt;var currentsatatus;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; while (currentPage &amp;lt;= totalpages) {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; grid.GotoNextPage();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Wait(2000); //just I wait for about some secondes do not foucs on this function if correct or not please&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; currentPage = grid.CurrentPageIndex;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;		&lt;/span&gt;currentsatatus=grid.IsInProgress&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;		&lt;/span&gt;while(currentsatatus){&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;			&lt;/span&gt;wait (2000);&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;			&lt;/span&gt;currentsatatus=grid.IsInProgress;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;		&lt;/span&gt;}&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;		&lt;/span&gt;var bfound=VerifyRowExistsInPage(Expectedrow);&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;		&lt;/span&gt;if (bfound){&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;				&lt;/span&gt;return true; //if the row is found I exist the function&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;				&lt;/span&gt;}&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;			&lt;/span&gt;currentPage = grid.CurrentPageIndex;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;		&lt;/span&gt;}&lt;/p&gt;&lt;p&gt;.....&lt;/p&gt;&lt;p&gt;......&lt;span class="Apple-tab-span" style="white-space:pre"&gt;	&lt;/span&gt;&lt;/p&gt;&lt;p&gt;here the rest of the code&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;		&lt;/span&gt;&lt;/p&gt;&lt;p&gt;My problem is when verifying if the grid is inprogress, it seems the variable in my code currentsatatus is always true&lt;/p&gt;&lt;p&gt;Can you help me please??&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;		&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>