PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.ruby > Ruby\Watir Hangs if the browser is not loaded completely
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Ruby\Watir Hangs if the browser is not loaded completely

Réponse
 
LinkBack Outils de la discussion
Vieux 21/11/2007, 11h30   #1
Vishwanath Uppala
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Ruby\Watir Hangs if the browser is not loaded completely

Hi all,

The watir just hangs up looking for page to download completely.
I want the test suite to continue with next test case if page does not
get downloaded within specified time.

Is there any way by which We can accomplish this?

in this regard would be greatly appreciated.

Sample Code:

require 'watir'
include Watir
@ie = IE.new
#----> The script gets hanged up with below stmt in case browser is not
# loaded completely
@ie.goto('http://vodafone.in')
@ie.bring_to_front()
@ie.maximize()

Even the statement below doesn't work here
@ie.wait(10)


Thanks
Vishwanath Uppala
--
Posted via http://www.ruby-forum.com/.

  Réponse avec citation
Vieux 21/11/2007, 11h33   #2
Lee Jarvis
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Ruby\Watir Hangs if the browser is not loaded completely

I haven't used that module before. But you could just use a Timeout or
rescue..

http://www.ruby-doc.org/stdlib/libdo...doc/index.html
--
Posted via http://www.ruby-forum.com/.

  Réponse avec citation
Vieux 21/11/2007, 11h40   #3
Vishwanath Uppala
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Ruby\Watir Hangs if the browser is not loaded completely

Lee Jarvis wrote:
> I haven't used that module before. But you could just use a Timeout or
> rescue..
>
> http://www.ruby-doc.org/stdlib/libdo...doc/index.html



Can U explain a bit more with a sample script or so
Because I didn't get you how can we bypass a statement which is trying
to wait till infinity until the page gets downloaded completely

Thanks
--
Posted via http://www.ruby-forum.com/.

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 01h56.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,21707 seconds with 11 queries