Bug 1499135 - ensure 'no browsing context' test in clear.py isn't relying on the previous page runs, r=ato
authorOlli Pettay <Olli.Pettay@helsinki.fi>
Tue, 16 Oct 2018 07:19:31 -0400
changeset 489763 97be1d70d0cd4637a4bd02e984d179b3f1a600e8
parent 489762 085738995db1c63fd00b3ddec8f084190833eb0a
child 489764 180eb0ea89bcf02d511d4e05f493583d125177ea
push id247
push userfmarier@mozilla.com
push dateSat, 27 Oct 2018 01:06:44 +0000
reviewersato
bugs1499135
milestone64.0a1
Bug 1499135 - ensure 'no browsing context' test in clear.py isn't relying on the previous page runs, r=ato
testing/web-platform/tests/webdriver/tests/element_clear/clear.py
--- a/testing/web-platform/tests/webdriver/tests/element_clear/clear.py
+++ b/testing/web-platform/tests/webdriver/tests/element_clear/clear.py
@@ -1,11 +1,12 @@
 # META: timeout=long
 
 import pytest
+import time
 
 from webdriver import Element
 
 from tests.support.asserts import (
     assert_element_has_focus,
     assert_error,
     assert_events_equal,
     assert_in_events,
@@ -42,17 +43,17 @@ def test_null_response_value(session):
     element = session.find.css("input", all=False)
 
     response = element_clear(session, element)
     value = assert_success(response)
     assert value is None
 
 
 def test_no_browsing_context(session, closed_window):
-    element = Element("foo", session)
+    element = Element("foo" + str(time.time()), session)
 
     response = element_clear(session, element)
     assert_error(response, "no such window")
 
 
 def test_connected_element(session):
     session.url = inline("<input>")
     element = session.find.css("input", all=False)