------ art_17022_8792149.1170687841770 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline There is a method on @@ie (i'm assuming Watir usage here) called something like #wait_for_response that will block until said execution is done. Jason On 2/5/07, Patrick Spence <patrick / pkspence.com> wrote: > > The C# web app we are automating for QA testing has been recently > converted to Ajax. Because of it's asynchronous nature, this has broken > all our test scripts. In order to get them to work, we resorted to > inserting a "sleep()" statement at the beginning of test method in the > test suite, certainly not an ideal solution. So, in the meantime, we're > stuck with this nonsense: > > def test_0001_username() > sleep(2) > @@ie.text_field(:id,'ctl00_lgnLogin_UserName').set('TEST-5038') > end > > def test_0002_password() > sleep(2) > @@ie.text_field(:id,'ctl00_lgnLogin_Password').set('passw0rd') > end > > def test_0003_loginButton() > sleep(2) > @@ie.button(:id,'ctl00_lgnLogin_LoginButton').click > end > > Has anyone else run into this and what was your solution? Thanks! > > -- > Posted via http://www.ruby-forum.com/. > > ------ art_17022_8792149.1170687841770--