Diff
Modified: trunk/WebDriverTests/ChangeLog (227999 => 228000)
--- trunk/WebDriverTests/ChangeLog 2018-02-02 08:47:38 UTC (rev 227999)
+++ trunk/WebDriverTests/ChangeLog 2018-02-02 09:24:22 UTC (rev 228000)
@@ -1,3 +1,27 @@
+2018-02-02 Carlos Garcia Campos <cgar...@igalia.com>
+
+ Unreviewed. Update Selenium WebDriver imported tests.
+
+ * imported/selenium/importer.json:
+ * imported/selenium/py/selenium/__init__.py:
+ * imported/selenium/py/selenium/webdriver/remote/errorhandler.py:
+ * imported/selenium/py/selenium/webdriver/remote/remote_connection.py:
+ * imported/selenium/py/test/selenium/webdriver/common/alerts_tests.py:
+ * imported/selenium/py/test/selenium/webdriver/common/click_scrolling_tests.py:
+ * imported/selenium/py/test/selenium/webdriver/common/correct_event_firing_tests.py:
+ * imported/selenium/py/test/selenium/webdriver/common/driver_element_finding_tests.py:
+ * imported/selenium/py/test/selenium/webdriver/common/element_attribute_tests.py:
+ * imported/selenium/py/test/selenium/webdriver/common/executing_async_javascript_tests.py:
+ * imported/selenium/py/test/selenium/webdriver/common/frame_switching_tests.py:
+ * imported/selenium/py/test/selenium/webdriver/common/interactions_tests.py:
+ * imported/selenium/py/test/selenium/webdriver/common/page_load_timeout_tests.py:
+ * imported/selenium/py/test/selenium/webdriver/common/page_loading_tests.py:
+ * imported/selenium/py/test/selenium/webdriver/common/rendered_webelement_tests.py:
+ * imported/selenium/py/test/selenium/webdriver/common/stale_reference_tests.py:
+ * imported/selenium/py/test/selenium/webdriver/common/webdriverwait_tests.py:
+ * imported/selenium/py/test/selenium/webdriver/common/window_switching_tests.py:
+ * imported/selenium/py/test/selenium/webdriver/common/window_tests.py:
+
2018-01-31 Carlos Garcia Campos <cgar...@igalia.com>
Unreviewed gardening. Update expectations of several WebDriver tests.
Modified: trunk/WebDriverTests/imported/selenium/importer.json (227999 => 228000)
--- trunk/WebDriverTests/imported/selenium/importer.json 2018-02-02 08:47:38 UTC (rev 227999)
+++ trunk/WebDriverTests/imported/selenium/importer.json 2018-02-02 09:24:22 UTC (rev 228000)
@@ -1,6 +1,6 @@
{
"repository": "https://github.com/SeleniumHQ/selenium.git",
- "revision": "569520625c9719e2f3e8669b638981e0c690a7d8",
+ "revision": "63d571a2d64a8930c171fe94fc7b2e7e4eefde87",
"paths_to_import": [
"common",
"py/conftest.py",
Modified: trunk/WebDriverTests/imported/selenium/py/selenium/__init__.py (227999 => 228000)
--- trunk/WebDriverTests/imported/selenium/py/selenium/__init__.py 2018-02-02 08:47:38 UTC (rev 227999)
+++ trunk/WebDriverTests/imported/selenium/py/selenium/__init__.py 2018-02-02 09:24:22 UTC (rev 228000)
@@ -16,4 +16,4 @@
# under the License.
-__version__ = "3.8.1"
+__version__ = "3.9.0"
Modified: trunk/WebDriverTests/imported/selenium/py/selenium/webdriver/remote/errorhandler.py (227999 => 228000)
--- trunk/WebDriverTests/imported/selenium/py/selenium/webdriver/remote/errorhandler.py 2018-02-02 08:47:38 UTC (rev 227999)
+++ trunk/WebDriverTests/imported/selenium/py/selenium/webdriver/remote/errorhandler.py 2018-02-02 09:24:22 UTC (rev 228000)
@@ -232,8 +232,13 @@
pass
if exception_class == ErrorInResponseException:
raise exception_class(response, message)
- elif exception_class == UnexpectedAlertPresentException and 'alert' in value:
- raise exception_class(message, screen, stacktrace, value['alert'].get('text'))
+ elif exception_class == UnexpectedAlertPresentException:
+ alert_text = None
+ if 'data' in value:
+ alert_text = value['data'].get('text')
+ elif 'alert' in value:
+ alert_text = value['alert'].get('text')
+ raise exception_class(message, screen, stacktrace, alert_text)
raise exception_class(message, screen, stacktrace)
def _value_or_default(self, obj, key, default):
Modified: trunk/WebDriverTests/imported/selenium/py/selenium/webdriver/remote/remote_connection.py (227999 => 228000)
--- trunk/WebDriverTests/imported/selenium/py/selenium/webdriver/remote/remote_connection.py 2018-02-02 08:47:38 UTC (rev 227999)
+++ trunk/WebDriverTests/imported/selenium/py/selenium/webdriver/remote/remote_connection.py 2018-02-02 09:24:22 UTC (rev 228000)
@@ -564,5 +564,5 @@
data = "" 0, 'value': body.strip()}
return data
finally:
- LOGGER.debug(u"Finished Request {}".format(data))
+ LOGGER.debug("Finished Request")
resp.close()
Modified: trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/alerts_tests.py (227999 => 228000)
--- trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/alerts_tests.py 2018-02-02 08:47:38 UTC (rev 227999)
+++ trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/alerts_tests.py 2018-02-02 09:24:22 UTC (rev 228000)
@@ -37,8 +37,6 @@
pass
-@pytest.mark.xfail_chrome(
- reason='https://bugs.chromium.org/p/chromedriver/issues/detail?id=1500')
def testShouldBeAbleToOverrideTheWindowAlertMethod(driver, pages):
pages.load("alerts.html")
driver.execute_script(
@@ -56,8 +54,6 @@
raise e
-@pytest.mark.xfail_chrome(
- reason='https://bugs.chromium.org/p/chromedriver/issues/detail?id=1500')
def testShouldAllowUsersToAcceptAnAlertManually(driver, pages):
pages.load("alerts.html")
driver.find_element(by=By.ID, value="alert").click()
@@ -67,8 +63,6 @@
assert "Testing Alerts" == driver.title
-@pytest.mark.xfail_chrome(
- reason='https://bugs.chromium.org/p/chromedriver/issues/detail?id=1500')
def testShouldAllowUsersToAcceptAnAlertWithNoTextManually(driver, pages):
pages.load("alerts.html")
driver.find_element(By.ID, "empty-alert").click()
@@ -79,8 +73,6 @@
assert "Testing Alerts" == driver.title
-@pytest.mark.xfail_chrome(
- reason='https://bugs.chromium.org/p/chromedriver/issues/detail?id=1500')
def testShouldGetTextOfAlertOpenedInSetTimeout(driver, pages):
pages.load("alerts.html")
driver.find_element_by_id("slow-alert").click()
@@ -96,9 +88,6 @@
alert.accept()
-@pytest.mark.xfail_chrome(
- reason='https://bugs.chromium.org/p/chromedriver/issues/detail?id=26 and https://bugs.chromium.org/p/chromedriver/issues/detail?id=1500',
- run=False)
def testShouldAllowUsersToDismissAnAlertManually(driver, pages):
pages.load("alerts.html")
driver.find_element(by=By.ID, value="alert").click()
@@ -108,8 +97,6 @@
assert "Testing Alerts" == driver.title
-@pytest.mark.xfail_chrome(
- reason='https://bugs.chromium.org/p/chromedriver/issues/detail?id=1500')
def testShouldAllowAUserToAcceptAPrompt(driver, pages):
pages.load("alerts.html")
driver.find_element(by=By.ID, value="prompt").click()
@@ -120,8 +107,6 @@
assert "Testing Alerts" == driver.title
-@pytest.mark.xfail_chrome(
- reason='https://bugs.chromium.org/p/chromedriver/issues/detail?id=1500')
def testShouldAllowAUserToDismissAPrompt(driver, pages):
pages.load("alerts.html")
driver.find_element(by=By.ID, value="prompt").click()
@@ -132,8 +117,6 @@
assert "Testing Alerts" == driver.title
-@pytest.mark.xfail_chrome(
- reason='https://bugs.chromium.org/p/chromedriver/issues/detail?id=1500')
def testShouldAllowAUserToSetTheValueOfAPrompt(driver, pages):
pages.load("alerts.html")
driver.find_element(by=By.ID, value="prompt").click()
@@ -145,8 +128,6 @@
assert "cheese" == result
-@pytest.mark.xfail_chrome(
- reason='https://bugs.chromium.org/p/chromedriver/issues/detail?id=1353')
def testSettingTheValueOfAnAlertThrows(driver, pages):
pages.load("alerts.html")
driver.find_element(By.ID, "alert").click()
@@ -172,8 +153,6 @@
alert.text
-@pytest.mark.xfail_chrome(
- reason='https://bugs.chromium.org/p/chromedriver/issues/detail?id=1500')
@pytest.mark.xfail_marionette(reason='Fails on travis')
def testShouldAllowUsersToAcceptAnAlertInAFrame(driver, pages):
pages.load("alerts.html")
@@ -186,8 +165,6 @@
assert "Testing Alerts" == driver.title
-@pytest.mark.xfail_chrome(
- reason='https://bugs.chromium.org/p/chromedriver/issues/detail?id=1500')
@pytest.mark.xfail_marionette(reason='Fails on travis')
def testShouldAllowUsersToAcceptAnAlertInANestedFrame(driver, pages):
pages.load("alerts.html")
@@ -207,8 +184,6 @@
# //TODO(David) Complete this test
-@pytest.mark.xfail_chrome(
- reason='https://bugs.chromium.org/p/chromedriver/issues/detail?id=1500')
def testPromptShouldUseDefaultValueIfNoKeysSent(driver, pages):
pages.load("alerts.html")
driver.find_element(By.ID, "prompt-with-default").click()
@@ -220,8 +195,6 @@
assert "This is a default value" == txt
-@pytest.mark.xfail_chrome(
- reason='https://bugs.chromium.org/p/chromedriver/issues/detail?id=1500')
def testPromptShouldHaveNullValueIfDismissed(driver, pages):
pages.load("alerts.html")
driver.find_element(By.ID, "prompt-with-default").click()
@@ -231,8 +204,6 @@
assert "null" == driver.find_element(By.ID, "text").text
-@pytest.mark.xfail_chrome(
- reason='https://bugs.chromium.org/p/chromedriver/issues/detail?id=1500')
def testHandlesTwoAlertsFromOneInteraction(driver, pages):
pages.load("alerts.html")
@@ -250,8 +221,6 @@
assert driver.find_element(By.ID, "text2").text == "cheddar"
-@pytest.mark.xfail_chrome(
- reason='https://bugs.chromium.org/p/chromedriver/issues/detail?id=1500')
def testShouldHandleAlertOnPageLoad(driver, pages):
pages.load("alerts.html")
driver.find_element(By.ID, "open-page-with-onload-alert").click()
@@ -271,8 +240,6 @@
WebDriverWait(driver, 3).until(EC.text_to_be_present_in_element((By.TAG_NAME, "p"), "Page with onload event handler"))
-@pytest.mark.xfail_chrome(
- reason='https://bugs.chromium.org/p/chromedriver/issues/detail?id=1500')
def testShouldHandleAlertOnPageBeforeUnload(driver, pages):
pages.load("pageWithOnBeforeUnloadMessage.html")
@@ -289,8 +256,6 @@
WebDriverWait(driver, 3).until(EC.title_is("Testing Alerts"))
-@pytest.mark.xfail_chrome(
- reason='https://bugs.chromium.org/p/chromedriver/issues/detail?id=1500')
def _testShouldHandleAlertOnPageBeforeUnloadAtQuit(driver, pages):
# TODO: Add the ability to get a new session
pages.load("pageWithOnBeforeUnloadMessage.html")
@@ -303,8 +268,6 @@
driver.quit()
-@pytest.mark.xfail_chrome(
- reason='https://bugs.chromium.org/p/chromedriver/issues/detail?id=1500')
def testShouldAllowTheUserToGetTheTextOfAnAlert(driver, pages):
pages.load("alerts.html")
driver.find_element(by=By.ID, value="alert").click()
@@ -314,8 +277,6 @@
assert "cheese" == value
-@pytest.mark.xfail_chrome(
- reason='https://bugs.chromium.org/p/chromedriver/issues/detail?id=1500')
def testShouldAllowTheUserToGetTheTextOfAPrompt(driver, pages):
pages.load("alerts.html")
driver.find_element(By.ID, "prompt").click()
@@ -327,8 +288,6 @@
assert "Enter something" == value
-@pytest.mark.xfail_chrome(
- reason='https://bugs.chromium.org/p/chromedriver/issues/detail?id=1500')
def testAlertShouldNotAllowAdditionalCommandsIfDismissed(driver, pages):
pages.load("alerts.html")
driver.find_element(By.ID, "alert").click()
Modified: trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/click_scrolling_tests.py (227999 => 228000)
--- trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/click_scrolling_tests.py 2018-02-02 08:47:38 UTC (rev 227999)
+++ trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/click_scrolling_tests.py 2018-02-02 09:24:22 UTC (rev 228000)
@@ -17,10 +17,7 @@
import pytest
-from selenium.common.exceptions import (
- ElementNotInteractableException,
- MoveTargetOutOfBoundsException,
- WebDriverException)
+from selenium.common.exceptions import MoveTargetOutOfBoundsException
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
@@ -56,8 +53,6 @@
AssertionError("Should not be out of bounds: %s" % e.msg)
-@pytest.mark.xfail_marionette(
- reason='https://github.com/w3c/webdriver/issues/408')
def testShouldBeAbleToClickOnAnElementHiddenByOverflow(driver, pages):
pages.load("scroll.html")
@@ -67,9 +62,6 @@
assert "line8" == driver.find_element(By.ID, "clicked").text
-@pytest.mark.xfail_chrome(
- reason='https://bugs.chromium.org/p/chromedriver/issues/detail?id=1536',
- raises=WebDriverException)
def testShouldBeAbleToClickOnAnElementHiddenByDoubleOverflow(driver, pages):
pages.load("scrolling_tests/page_with_double_overflow_auto.html")
@@ -110,9 +102,6 @@
# If we don't throw, we're good
-@pytest.mark.xfail_marionette(
- reason='https://github.com/w3c/webdriver/issues/408',
- raises=ElementNotInteractableException)
def testShouldScrollOverflowElementsIfClickPointIsOutOfViewButElementIsInView(driver, pages):
pages.load("scroll5.html")
driver.find_element(By.ID, "inner").click()
Modified: trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/correct_event_firing_tests.py (227999 => 228000)
--- trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/correct_event_firing_tests.py 2018-02-02 08:47:38 UTC (rev 227999)
+++ trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/correct_event_firing_tests.py 2018-02-02 09:24:22 UTC (rev 228000)
@@ -15,7 +15,9 @@
# specific language governing permissions and limitations
# under the License.
+import pytest
+
def testShouldFireClickEventWhenClicking(driver, pages):
pages.load("_javascript_Page.html")
_clickOnElementWhichRecordsEvents(driver)
@@ -89,6 +91,7 @@
assert clicker.get_attribute("value") == "Clicked"
+@pytest.mark.xfail_marionette(reason='https://bugzilla.mozilla.org/show_bug.cgi?id=1430571')
def testClearingAnElementShouldCauseTheOnChangeHandlerToFire(driver, pages):
pages.load("_javascript_Page.html")
element = driver.find_element_by_id("clearMe")
Modified: trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/driver_element_finding_tests.py (227999 => 228000)
--- trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/driver_element_finding_tests.py 2018-02-02 08:47:38 UTC (rev 227999)
+++ trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/driver_element_finding_tests.py 2018-02-02 09:24:22 UTC (rev 228000)
@@ -180,8 +180,6 @@
assert len(elements) == 0
-@pytest.mark.xfail_chrome(
- reason='https://bugs.chromium.org/p/chromedriver/issues/detail?id=1541')
def test_Finding_ASingle_Element_By_Empty_Tag_Name_Should_Throw(driver, pages):
pages.load("formPage.html")
with pytest.raises(InvalidSelectorException):
@@ -188,8 +186,6 @@
driver.find_element(By.TAG_NAME, "")
-@pytest.mark.xfail_chrome(
- reason='https://bugs.chromium.org/p/chromedriver/issues/detail?id=1541')
def test_Finding_Multiple_Elements_By_Empty_Tag_Name_Should_Throw(driver, pages):
pages.load("formPage.html")
with pytest.raises(InvalidSelectorException):
Modified: trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/element_attribute_tests.py (227999 => 228000)
--- trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/element_attribute_tests.py 2018-02-02 08:47:38 UTC (rev 227999)
+++ trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/element_attribute_tests.py 2018-02-02 09:24:22 UTC (rev 228000)
@@ -99,8 +99,6 @@
assert not textArea.is_enabled()
-@pytest.mark.xfail_marionette(
- reason='https://bugzilla.mozilla.org/show_bug.cgi?id=1309234')
def testShouldThrowExceptionIfSendingKeysToElementDisabledUsingRandomDisabledStrings(driver, pages):
pages.load("formPage.html")
disabledTextElement1 = driver.find_element_by_id("disabledTextElement1")
Modified: trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/executing_async_javascript_tests.py (227999 => 228000)
--- trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/executing_async_javascript_tests.py 2018-02-02 08:47:38 UTC (rev 227999)
+++ trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/executing_async_javascript_tests.py 2018-02-02 09:24:22 UTC (rev 228000)
@@ -120,6 +120,7 @@
driver.execute_async_script("window.setTimeout(function() {}, 0);")
+@pytest.mark.xfail_marionette
def testShouldNotTimeoutIfScriptCallsbackInsideAZeroTimeout(driver, pages):
pages.load("ajaxy_page.html")
driver.execute_async_script(
Modified: trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/frame_switching_tests.py (227999 => 228000)
--- trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/frame_switching_tests.py 2018-02-02 08:47:38 UTC (rev 227999)
+++ trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/frame_switching_tests.py 2018-02-02 09:24:22 UTC (rev 228000)
@@ -212,6 +212,7 @@
# ----------------------------------------------------------------------------------------------
+@pytest.mark.xfail_chrome(reason='https://bugs.chromium.org/p/chromedriver/issues/detail?id=2198')
def testShouldContinueToReferToTheSameFrameOnceItHasBeenSelected(driver, pages):
pages.load("frameset.html")
driver.switch_to.frame(2)
@@ -245,6 +246,7 @@
driver.find_element(By.ID, "iframe_page_heading")
+@pytest.mark.xfail_chrome(reason='https://bugs.chromium.org/p/chromedriver/issues/detail?id=2198')
def testShouldAllowTheUserToSwitchToAnIFrameAndRemainFocusedOnIt(driver, pages):
pages.load("iframes.html")
driver.switch_to.frame(0)
@@ -256,6 +258,7 @@
return WebDriverWait(driver, 3).until(EC.presence_of_element_located((By.ID, "greeting"))).text
+@pytest.mark.xfail_chrome(reason='https://bugs.chromium.org/p/chromedriver/issues/detail?id=2198')
def testShouldBeAbleToClickInAFrame(driver, pages):
pages.load("frameset.html")
driver.switch_to.frame("third")
@@ -278,6 +281,7 @@
WebDriverWait(driver, 3).until(EC.title_is("Target page for issue 5237"))
+@pytest.mark.xfail_chrome(reason='https://bugs.chromium.org/p/chromedriver/issues/detail?id=2198')
def testShouldBeAbleToClickInASubFrame(driver, pages):
pages.load("frameset.html")
driver.switch_to.frame(driver.find_element_by_id("sixth"))
@@ -369,8 +373,6 @@
reason='https://github.com/mozilla/geckodriver/issues/614')
@pytest.mark.xfail_webkitgtk(raises=NoSuchElementException)
def testShouldNotBeAbleToDoAnythingTheFrameIsDeletedFromUnderUs(driver, pages):
- if driver.name == 'firefox' and driver.w3c:
- pytest.skip('Stalls tests, https://bugzilla.mozilla.org/show_bug.cgi?id=1410799')
pages.load("frame_switching_tests/deletingFrame.html")
driver.switch_to.frame(driver.find_element_by_id("iframe1"))
@@ -394,6 +396,7 @@
assert driver.execute_script("return window != window.top")
+@pytest.mark.xfail_chrome(reason='https://bugs.chromium.org/p/chromedriver/issues/detail?id=2198')
def testShouldNotSwitchMagicallyToTheTopWindow(driver, pages):
pages.load("frame_switching_tests/bug4876.html")
driver.switch_to.frame(0)
Modified: trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/interactions_tests.py (227999 => 228000)
--- trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/interactions_tests.py 2018-02-02 08:47:38 UTC (rev 227999)
+++ trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/interactions_tests.py 2018-02-02 09:24:22 UTC (rev 228000)
@@ -96,8 +96,6 @@
assert "Dropped!" == text
-@pytest.mark.xfail_marionette(
- reason='https://github.com/mozilla/geckodriver/issues/661')
def testDoubleClick(driver, pages):
"""Copied from org.openqa.selenium.interactions.TestBasicMouseInterface."""
pages.load("_javascript_Page.html")
Modified: trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/page_load_timeout_tests.py (227999 => 228000)
--- trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/page_load_timeout_tests.py 2018-02-02 08:47:38 UTC (rev 227999)
+++ trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/page_load_timeout_tests.py 2018-02-02 09:24:22 UTC (rev 228000)
@@ -32,6 +32,7 @@
pages.load("simpleTest.html")
+@pytest.mark.xfail_chrome
def testClickShouldTimeout(driver, pages):
pages.load("simpleTest.html")
driver.set_page_load_timeout(0.01)
Modified: trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/page_loading_tests.py (227999 => 228000)
--- trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/page_loading_tests.py 2018-02-02 08:47:38 UTC (rev 227999)
+++ trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/page_loading_tests.py 2018-02-02 09:24:22 UTC (rev 228000)
@@ -40,6 +40,7 @@
# assert driver.title == "We Arrive Here"
+@pytest.mark.xfail_chrome(reason='https://bugs.chromium.org/p/chromedriver/issues/detail?id=2239')
def testShouldBeAbleToGetAFragmentOnTheCurrentPage(driver, pages):
pages.load("xhtmlTest.html")
location = driver.current_url
@@ -115,6 +116,7 @@
@pytest.mark.xfail_ie
@pytest.mark.xfail_marionette(run=False)
+@pytest.mark.xfail_chrome(run=False)
def testShouldNotHangifDocumentOpenCallIsNeverFollowedByDocumentCloseCall(driver, pages):
pages.load("document_write_in_onload.html")
driver.find_element(By.XPATH, "//body")
Modified: trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/rendered_webelement_tests.py (227999 => 228000)
--- trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/rendered_webelement_tests.py 2018-02-02 08:47:38 UTC (rev 227999)
+++ trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/rendered_webelement_tests.py 2018-02-02 09:24:22 UTC (rev 228000)
@@ -19,27 +19,26 @@
from selenium.common.exceptions import WebDriverException
from selenium.webdriver.common.by import By
+from selenium.webdriver.support.color import Color
-@pytest.mark.xfail_marionette(
- reason='https://github.com/w3c/webdriver/issues/417')
def testShouldPickUpStyleOfAnElement(driver, pages):
pages.load("_javascript_Page.html")
element = driver.find_element(by=By.ID, value="green-parent")
- backgroundColour = element.value_of_css_property("background-color")
- assert "rgba(0, 128, 0, 1)" == backgroundColour
+ backgroundColour = Color.from_string(element.value_of_css_property("background-color"))
+ assert Color.from_string("rgba(0, 128, 0, 1)") == backgroundColour
element = driver.find_element(by=By.ID, value="red-item")
- backgroundColour = element.value_of_css_property("background-color")
- assert "rgba(255, 0, 0, 1)" == backgroundColour
+ backgroundColour = Color.from_string(element.value_of_css_property("background-color"))
+ assert Color.from_string("rgba(255, 0, 0, 1)") == backgroundColour
def testShouldAllowInheritedStylesToBeUsed(driver, pages):
pages.load("_javascript_Page.html")
element = driver.find_element(by=By.ID, value="green-item")
- backgroundColour = element.value_of_css_property("background-color")
- assert backgroundColour in ("rgba(0, 0, 0, 0)", "transparent")
+ backgroundColour = Color.from_string(element.value_of_css_property("background-color"))
+ assert backgroundColour == Color.from_string("transparent")
def testShouldCorrectlyIdentifyThatAnElementHasWidth(driver, pages):
Modified: trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/stale_reference_tests.py (227999 => 228000)
--- trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/stale_reference_tests.py 2018-02-02 08:47:38 UTC (rev 227999)
+++ trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/stale_reference_tests.py 2018-02-02 09:24:22 UTC (rev 228000)
@@ -22,8 +22,6 @@
def testOldPage(driver, pages):
- if driver.name == 'firefox' and driver.w3c:
- pytest.skip('Stalls tests, https://bugzilla.mozilla.org/show_bug.cgi?id=1410799')
pages.load("simpleTest.html")
elem = driver.find_element(by=By.ID, value="links")
pages.load("xhtmlTest.html")
Modified: trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/webdriverwait_tests.py (227999 => 228000)
--- trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/webdriverwait_tests.py 2018-02-02 08:47:38 UTC (rev 227999)
+++ trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/webdriverwait_tests.py 2018-02-02 09:24:22 UTC (rev 228000)
@@ -90,7 +90,6 @@
WebDriverWait(driver, 0.7).until(EC.visibility_of_any_elements_located((By.CLASS_NAME, "redbox")))
-@pytest.mark.xfail_marionette(reason='Fails on travis')
def testShouldWaitUntilAllVisibleElementsAreFoundWhenSearchingForMany(driver, pages):
pages.load("hidden_partially.html")
add_visible = driver.find_element_by_id("addVisible")
Modified: trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/window_switching_tests.py (227999 => 228000)
--- trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/window_switching_tests.py 2018-02-02 08:47:38 UTC (rev 227999)
+++ trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/window_switching_tests.py 2018-02-02 09:24:22 UTC (rev 228000)
@@ -172,7 +172,6 @@
assert current == new_handle
-@pytest.mark.xfail_chrome(reason="Fails on Travis")
def testThatAccessingFindingAnElementAfterWindowIsClosedAndHaventswitchedDoesntCrash(driver, pages):
pages.load("xhtmlTest.html")
current = driver.current_window_handle
Modified: trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/window_tests.py (227999 => 228000)
--- trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/window_tests.py 2018-02-02 08:47:38 UTC (rev 227999)
+++ trunk/WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/window_tests.py 2018-02-02 09:24:22 UTC (rev 228000)
@@ -80,8 +80,6 @@
assert new_position.get('y') == target_y
-@pytest.mark.xfail_chrome(raises=WebDriverException,
- reason='Get Window Rect command not implemented')
@pytest.mark.xfail_firefox(raises=WebDriverException,
reason='Get Window Rect command not implemented')
@pytest.mark.xfail_remote(raises=WebDriverException,
@@ -96,8 +94,6 @@
assert rect.get('height') >= 0
-@pytest.mark.xfail_chrome(raises=WebDriverException,
- reason='Get Window Rect command not implemented')
@pytest.mark.xfail_firefox(raises=WebDriverException,
reason='Get Window Rect command not implemented')
@pytest.mark.xfail_remote(raises=WebDriverException,