Skip to content

Commit

Permalink
[py] Enable passing testShouldBeAbleToOverrideTheWindowAlertMethod fo…
Browse files Browse the repository at this point in the history
…r PhantomJS
  • Loading branch information
davehunt committed Oct 24, 2016
1 parent 2512868 commit cc98e83
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions py/test/selenium/webdriver/common/alerts_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
class TestAlerts(object):

def testShouldBeAbleToOverrideTheWindowAlertMethod(self, driver, pages):
if driver.capabilities['browserName'] == 'phantomjs':
pytest.xfail("phantomjs driver does not support alerts")
pages.load("alerts.html")
driver.execute_script(
"window.alert = function(msg) { document.getElementById('text').innerHTML = msg; }")
Expand Down

0 comments on commit cc98e83

Please sign in to comment.