How do i tell Ruby to stop test case and start with tearDown? Does anyone have experiances with testing web pages created with Microsoft sql report?
br, Dani On 10 jun., 10:53, Danijel <[email protected]> wrote: > I'm doing on pages, which are created by Microsoft SQL Report and i > have problems with then when i use watir > > i have this code, and i made work around, but still is not working > properly > > $ie.link(:url, 'https://' + $server + '/Pages/Reports/ > CrooView2.aspx').click > $ie.text_field(:id, 'ctl00_ContentMain_txtJMBG').set(pib) > $ie.select_list(:id, 'ctl00_ContentMain_cmbStatus').select_value('') > > $ie.button(:id, 'ctl00_ContentMain_btnShowReport').click! -< i click > and do not wait > #loading is used from > pagehttp://wiki.openqa.org/display/WTR/How+to+wait+with+Watir > until loading?(false) == false > puts "loading" > end > # wait if element is visible , say it si visible, this function with > smae paramteres was tested and works fine > watifor_visible_element_id('//div[1]/table/tbody/tr[4]/td[2]/table/ > tbody/tr[3]/td[2]/div', 'xpath') > > # element is not found > if( status != $ie.div(:xpath,'//div[1]/table/tbody/tr[4]/td[2]/table/ > tbody/tr[3]/td[2]/div').text) > return nil > end > > Where i did a workaournd: > - $ie.button(:id, 'ctl00_ContentMain_btnShowReport').click! > - until loading?(false) == false > puts "loading" > end > it si not working properly because page is loading and it is finished > with page > - watifor_visible_element_id('//div[1]/table/tbody/tr[4]/td[2]/table/ > tbody/tr[3]/td[2]/div', 'xpath') > here i watit foer elemtn to be visible > > and test when is finished is not stoped, it is still working. > > Manualy SQL reports works great, but they are unrecognizable to a > watir, watir don't know to handle this pages, thats why is this wery > big problem of testing. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: [email protected] To unsubscribe: [email protected]
