[Checkins] SVN: gocept.selenium/trunk/src/gocept/selenium/selenese.py Make refresh() wait for the browser to actuall load the page before continuing

Wolfgang Schnerring wosc at wosc.de
Tue Dec 21 02:56:44 EST 2010


Log message for revision 119023:
  Make refresh() wait for the browser to actuall load the page before continuing
  

Changed:
  U   gocept.selenium/trunk/src/gocept/selenium/selenese.py

-=-
Modified: gocept.selenium/trunk/src/gocept/selenium/selenese.py
===================================================================
--- gocept.selenium/trunk/src/gocept/selenium/selenese.py	2010-12-21 07:50:54 UTC (rev 119022)
+++ gocept.selenium/trunk/src/gocept/selenium/selenese.py	2010-12-21 07:56:43 UTC (rev 119023)
@@ -301,9 +301,11 @@
     def mouseUpRightAt(self, locator, coord):
         pass
 
-    @passthrough
     def refresh(self):
-        pass
+        # No thanks to selenium... why would one ever *not* want to wait for
+        # the page to load?
+        self.selenium.refresh()
+        self.waitForPageToLoad()
 
     @passthrough
     def removeAllSelections(self, locator):



More information about the checkins mailing list