[wtr-general] Re: how do i check ads/images present on the web page and loading fine

2009-04-28 Thread «°¤§ømåtïçCðrp§ë¤°»
I'm still, pretty much a no0b, but could these examples help!? @browser.frame(:id, 'detail').text.should include("something here") @browser.frame(:id, '/adsonar_serve/').contains("some constant") For the constantly changing frames, the only suggestion I can give, is to include rescues for frames

[wtr-general] Re: how do i check ads/images present on the web page and loading fine

2009-04-27 Thread yogesh khandelwal
okie..i'll try. Do we still have ie.frame.html method with watir1.6.2 or it's removed? Thanks for your help Thanks, Yogesh On Tue, Apr 28, 2009 at 9:44 AM, Paul Rogers wrote: > you'll have to get the top level url using net/http and parse that. I dont > think you'll do it easily with watir ot

[wtr-general] Re: how do i check ads/images present on the web page and loading fine

2009-04-27 Thread Paul Rogers
you'll have to get the top level url using net/http and parse that. I dont think you'll do it easily with watir other wise Paul On Mon, Apr 27, 2009 at 10:11 PM, yogesh khandelwal < er.yogeshkhandel...@gmail.com> wrote: > how do i get the url of the iframe? if you can tell me how we can get the

[wtr-general] Re: how do i check ads/images present on the web page and loading fine

2009-04-27 Thread yogesh khandelwal
how do i get the url of the iframe? if you can tell me how we can get the url than i can parse it using net/htpp. Also for flash,.click() method doesnot work. Thanks, Yogesh On Tue, Apr 28, 2009 at 9:29 AM, Paul Rogers wrote: > if the iframes are in different domains you will struggle to acces

[wtr-general] Re: how do i check ads/images present on the web page and loading fine

2009-04-27 Thread Paul Rogers
if the iframes are in different domains you will struggle to access the contents of the iframe. Its a secrity thing in the browser. Can you get the main page with net/http and then parse that for the urls of the iframes and then open these individually in watir? Paul On Mon, Apr 27, 2009 at 9:46

[wtr-general] Re: how do i check ads/images present on the web page and loading fine

2009-04-27 Thread yogesh khandelwal
yeah i tried with valid html but i think watir1.6.2 is not supporting iframe.html method,i want to check the magic no of the ads and if we click on the ad,it should take as to right page.. ["If you want to see if the ad functions correctly, maybe loading it into its own page outside of the iframe

[wtr-general] Re: how do i check ads/images present on the web page and loading fine

2009-04-27 Thread Paul Rogers
so what are you trying to test? The ads show up? the ads function correctly? The impression count gets incremented correctly? If you only want to see if the ad shows up, just check the iframe has some valid html If you want to see if the ad functions correctly, maybe loading it into its own page o

[wtr-general] Re: how do i check ads/images present on the web page and loading fine

2009-04-27 Thread yogesh khandelwal
yeah...ads are in iframe...flash is having embed id..don't know how to deal with that..i installed flash-watir also but not able to get the expected result On Tue, Apr 28, 2009 at 8:28 AM, Paul Rogers wrote: > are the ads: > images > flash > in a div > in an iframe > > ? > > kind of diff

[wtr-general] Re: how do i check ads/images present on the web page and loading fine

2009-04-27 Thread Paul Rogers
are the ads: images flash in a div in an iframe ? kind of difficult to help you with this one. Paul On Mon, Apr 27, 2009 at 8:35 PM, yogesh wrote: > > yeah..i read that...sorry for the little information.. > > I need to check all the advertisement/images present on the page.Do we > ha

[wtr-general] Re: how do i check ads/images present on the web page and loading fine

2009-04-27 Thread yogesh
yeah..i read that...sorry for the little information.. I need to check all the advertisement/images present on the page.Do we have anything ,any method in watir/ruby by which i can verify this. For image loading,we have image.hasloaded?.. On Apr 28, 7:19 am, Anna Gabutero wrote: > Hi Yogesh, >

[wtr-general] Re: how do i check ads/images present on the web page and loading fine

2009-04-27 Thread Anna Gabutero
Hi Yogesh, Try reading: http://wiki.openqa.org/display/WTR/Support On Mon, Apr 27, 2009 at 05:52:52AM -0700, yogesh wrote: > > I need to check all the ads/images present on the webpage.They all are > coming from different locations,need to verify ,all images are loading > fine,no 404/302 error