I also get the same problem to sync page loading.

Then i think i have a good way to avoid it .

like this:

in watir_ext.rb

require 'watir'
module Watir
 class Element
    def assert_exists
# here is the code to solve , aslo can solve the problem about ajax sync load.
      Watir::Waiter::wait_until(15) { exist? }
      locate if respond_to?(:locate)
      unless ole_object
        raise UnknownObjectException.new(
                Watir::Exception.message_for_unable_to_locate(@how, @what))
      end
    end
 end
end

someone can tell me better method if have.
hope can help you.


在 Thu, 25 Nov 2010 23:53:22 +0800,<wtr-development-requ...@rubyforge.org> 写道:

Send Wtr-development mailing list submissions to
        wtr-development@rubyforge.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://rubyforge.org/mailman/listinfo/wtr-development
or, via email, send a message with subject or body 'help' to
        wtr-development-requ...@rubyforge.org

You can reach the person managing the list at
        wtr-development-ow...@rubyforge.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Wtr-development digest..."


Today's Topics:

   1. Re: A solution to avoiding basic authentication   dialogs
      (Tim Koopmans)
   2. Re: A solution to avoiding basic authentication   dialogs
      (Alan Baird)
   3. Re: A solution to avoiding basic authentication   dialogs (Jarmo)
   4. Re: Selenium Conference (Simon Stewart)
   5. Watir Conference (?eljko Filipin)
   6. [JIRA] Created: (WTR-466) Issues to sync correctly with page
      load in watir1.6.7 (Aliaksandr (JIRA))
   7. [JIRA] Commented: (WTR-466) Issues to sync correctly with
      page load in watir1.6.7 (Aliaksandr (JIRA))


----------------------------------------------------------------------

Message: 1
Date: Thu, 25 Nov 2010 10:46:44 +1100
From: Tim Koopmans <tim.ko...@gmail.com>
To: Watir development <wtr-development@rubyforge.org>
Subject: Re: [Wtr-development] A solution to avoiding basic
        authentication  dialogs
Message-ID:
        <aanlktikcsrmykudz_zvv95tjrofxehd3e-bvptdvg...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Cool! A simple but elegant solution, thanks for sharing.

Cheers,
Tim


On Thu, Nov 25, 2010 at 9:53 AM, Alister Scott <alister.sc...@gmail.com>wrote:

Hi,

I've just written about a way to avoid the 'basic authentication' dialog
boxes when using Watir.
It's on the wiki: http://wiki.openqa.org/display/WTR/Basic+Authentication
and my blog:
http://watirmelon.com/2010/11/24/elegantly-handling-basic-browser-authentication-with-watir/

Cheers,
Alister

Alister Scott
Brisbane, Australia
Watir Web Master: http://watir.com
Blog: http://watirmelon.com
LinkedIn: http://www.linkedin.com/in/alisterscott

_______________________________________________
Wtr-development mailing list
Wtr-development@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-development

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/wtr-development/attachments/20101125/04fa7317/attachment-0001.html>

------------------------------

Message: 2
Date: Wed, 24 Nov 2010 23:59:46 -0600
From: Alan Baird <aba...@bairdsnet.net>
To: Watir development <wtr-development@rubyforge.org>
Subject: Re: [Wtr-development] A solution to avoiding basic
        authentication  dialogs
Message-ID:
        <aanlktim04fpkbb3-0_xbdel9n=xquevh3tbfxr8gi...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Alister -

Did you get this to work with IE7?  This article (
http://support.microsoft.com/kb/834489) seems to indicate it doesn't work
past IE6.

Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/wtr-development/attachments/20101124/64ae6733/attachment-0001.html>

------------------------------

Message: 3
Date: Thu, 25 Nov 2010 13:02:07 +0200
From: Jarmo <jarm...@gmail.com>
To: Watir development <wtr-development@rubyforge.org>
Subject: Re: [Wtr-development] A solution to avoiding basic
        authentication  dialogs
Message-ID:
        <aanlktikorqycq5mfnaeeuszeqj12qu_ym4ddc6b1v...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Didn't this section help you either?

How to disable the new default behavior for handling user information in
HTTP or HTTPS URLsTo disable the new default behavior in Windows Explorer
and Internet Explorer, create*iexplore.exe* and *explorer.exe* DWORD values
in one of the following registry keys and set their value data to *0*.

- For all users of the program, set the value in the following registry
   key:
   HKEY_LOCAL_MACHINE\Software\Microsoft\Internet
   Explorer\Main\FeatureControl\FEATURE_HTTP_USERNAME_PASSWORD_DISABLE
   - For the current user of the program only, set the value in the
   following registry key:
   HKEY_CURRENT_USER\Software\Microsoft\Internet
   Explorer\Main\FeatureControl\FEATURE_HTTP_USERNAME_PASSWORD_DISABLE

   Jarmo


On Thu, Nov 25, 2010 at 7:59 AM, Alan Baird <aba...@bairdsnet.net> wrote:

Alister -

Did you get this to work with IE7?  This article (
http://support.microsoft.com/kb/834489) seems to indicate it doesn't work
past IE6.

Alan

_______________________________________________
Wtr-development mailing list
Wtr-development@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-development

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/wtr-development/attachments/20101125/76715fae/attachment-0001.html>

------------------------------

Message: 4
Date: Thu, 25 Nov 2010 11:24:54 +0000
From: Simon Stewart <simon.m.stew...@gmail.com>
To: Watir development <wtr-development@rubyforge.org>
Subject: Re: [Wtr-development] Selenium Conference
Message-ID:
        <aanlkti=nd78qrb_kw01llhzsej=qzyywquaee0ytw...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

On Thu, Nov 18, 2010 at 5:06 PM, Simon Stewart
<simon.m.stew...@gmail.com> wrote:
On Thu, Nov 18, 2010 at 3:52 PM, Jari Bakken <jari.bak...@gmail.com> wrote:
On Thu, Nov 18, 2010 at 4:16 PM, Jarmo <jarm...@gmail.com> wrote:
Don't forget that Oslo (Norway) is one of the most expensive places to be in
the world :P Maybe Jari can confirm or contradict.
Jarmo


That's true - it's a tie with Tokyo I think. Andreas is right that
finding a space in Oslo wouldn't be a problem. I'd definitely go if it
was in any European city though.

I also like the idea of meeting up at the Selenium conference - makes
sense to me since it looks like a lot of tools are converging on
WebDriver/Se2 as the core technology.

I'll suggest it to the group organizing SeConf.

If anyone here wants to join the mailing list where this is all being
planned and have their say, head over to
http://groups.google.com/group/seconf It'd be great to have you join
in :)

Cheers,

Simon


------------------------------

Message: 5
Date: Thu, 25 Nov 2010 15:21:14 +0100
From: ?eljko Filipin <zeljko.fili...@wa-research.ch>
To: watir <wtr-development@rubyforge.org>
Subject: [Wtr-development] Watir Conference
Message-ID:
        <aanlktinrehu+f_9upyxbzufnd=gddfgr5y78j_n_q...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

I have exchanged a few e-mails with Bret recently about his plan to visit
Europe in summer of 2011. He said he would like us to organize a small
conference where we could meet up.

About early June 2011 he will visit Zagreb (Croatia, where I live). I have offered to organize a small conference here. I would find a venue, suggest hotels, pick people at the airport, arrange sightseeing, brew some beer for
the event...

We would probably give presentations during the mornings and then pair in
the afternoon.

I can arrange sightseeing for people that arrive a few days earlier or stay
a few days after the conference. There are a few places to visit here.

For the people that would pay for the trip themselves, Zagreb is cheaper
than most European capitals.

What do you think?

?eljko
--
watir.com - community manager
watirpodcast.com - host
testingpodcast.com - audio podcasts on software testing. all of them
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/wtr-development/attachments/20101125/38eaa663/attachment-0001.html>

------------------------------

Message: 6
Date: Thu, 25 Nov 2010 09:53:20 -0600 (CST)
From: "Aliaksandr (JIRA)" <watirj...@gmail.com>
To: wtr-development@rubyforge.org
Subject: [Wtr-development] [JIRA] Created: (WTR-466) Issues to sync
        correctly with page load in watir1.6.7
Message-ID:
        
<21450679.700.1290700400264.javamail.oqa-j...@openqa01.managed.contegix.com>
        
Content-Type: text/plain; charset=UTF-8

Issues to sync correctly with page load in watir1.6.7
-----------------------------------------------------

                 Key: WTR-466
                 URL: http://jira.openqa.org/browse/WTR-466
             Project: Watir
          Issue Type: Bug
          Components: Wait
    Affects Versions: 1.6.7
         Environment: Win XP IE6, IE7
            Reporter: Aliaksandr
            Priority: Major


Hi,

We have recently updated our test environments to watir1.6.7 and our
scripts start to fail waiting for page to be fully loaded. Failures
happen when a script tries to access certain html elements on the page
while it is actually still loading.

We were able to figure out the cause of this behaviour. It is due to the
READYSTATE_INTERACTIVE state was added as the state to determine
browser load is complete:

ie-process.rb:
# Used internally to determine when IE has finished loading a page
READYSTATE_INTERACTIVE = 3

Wondering, what was the reason to include it?

This is an urgent issue for us (we have quite a few physical and virtual client boxes for automation execution, which need a fix), so very appreciate your help. For now we have to downgrade to watir1.6.5 throughout our test environment.


Best Regards,
Alex
_______________________________________________
Wtr-development mailing list
Wtr-development@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-development

Reply via email to