Skip to content

Commit 1c52dc8

Browse files
Setting expected failures in alerts tests
1 parent 11f5466 commit 1c52dc8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

py/test/selenium/webdriver/common/alerts_tests.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ def testShouldAllowAUserToDismissAPrompt(self):
121121
def testShouldAllowAUserToSetTheValueOfAPrompt(self):
122122
if self.driver.capabilities['browserName'] == 'phantomjs':
123123
pytest.xfail("phantomjs driver does not support alerts")
124+
if self.driver.capabilities['browserName'] == 'firefox':
125+
pytest.xfail("Known Marionette failure: https://github.com/mozilla/geckodriver/issues/17")
124126
self._loadPage("alerts")
125127
self.driver.find_element(by=By.ID, value="prompt").click()
126128
alert = self._waitForAlert()
@@ -133,6 +135,8 @@ def testShouldAllowAUserToSetTheValueOfAPrompt(self):
133135
def testSettingTheValueOfAnAlertThrows(self):
134136
if self.driver.capabilities['browserName'] == 'phantomjs':
135137
pytest.xfail("phantomjs driver does not support alerts")
138+
if self.driver.capabilities['browserName'] == 'firefox':
139+
pytest.xfail("Known Marionette failure: https://github.com/mozilla/geckodriver/issues/17")
136140
self._loadPage("alerts")
137141
self.driver.find_element(By.ID, "alert").click()
138142

@@ -177,6 +181,8 @@ def testShouldAllowUsersToAcceptAnAlertInAFrame(self):
177181
def testShouldAllowUsersToAcceptAnAlertInANestedFrame(self):
178182
if self.driver.capabilities['browserName'] == 'phantomjs':
179183
pytest.xfail("phantomjs driver does not support alerts")
184+
if self.driver.capabilities['browserName'] == 'firefox':
185+
pytest.xfail("Known Marionette failure")
180186
self._loadPage("alerts")
181187
self.driver.switch_to.frame(self.driver.find_element(By.NAME, "iframeWithIframe"))
182188
self.driver.switch_to.frame(self.driver.find_element(By.NAME, "iframeWithAlert"))
@@ -217,6 +223,8 @@ def testPromptShouldHaveNullValueIfDismissed(self):
217223
def testHandlesTwoAlertsFromOneInteraction(self):
218224
if self.driver.capabilities['browserName'] == 'phantomjs':
219225
pytest.xfail("phantomjs driver does not support alerts")
226+
if self.driver.capabilities['browserName'] == 'firefox':
227+
pytest.xfail("Known Marionette failure: https://github.com/mozilla/geckodriver/issues/17")
220228
self._loadPage("alerts")
221229

222230
self.driver.find_element(By.ID, "double-prompt").click()
@@ -316,6 +324,8 @@ def testAlertShouldNotAllowAdditionalCommandsIfDismissed(self):
316324
def testUnexpectedAlertPresentExceptionContainsAlertText(self):
317325
if self.driver.capabilities['browserName'] == 'phantomjs':
318326
pytest.xfail("phantomjs driver does not support alerts")
327+
if self.driver.capabilities['browserName'] == 'firefox':
328+
pytest.xfail("Known Marionette Failure")
319329
self._loadPage("alerts")
320330
self.driver.find_element(by=By.ID, value="alert").click()
321331
alert = self._waitForAlert()

0 commit comments

Comments
 (0)