Skip to content

Commit 1b24642

Browse files
Remove pdb statement and add xfail to new test
1 parent 8ce9a9a commit 1b24642

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

py/test/selenium/webdriver/common/takes_screenshots_tests.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
import base64
1919
import imghdr
2020

21+
import pytest
22+
2123

2224
class TestScreenshot(object):
2325

@@ -31,9 +33,12 @@ def test_get_screenshot_as_png(self, driver, pages):
3133
result = driver.get_screenshot_as_png()
3234
assert imghdr.what('', result) == 'png'
3335

36+
@pytest.mark.xfail_chrome
37+
@pytest.mark.xfail_firefox
38+
@pytest.mark.xfail_marionette
39+
@pytest.mark.xfail_remote
3440
def test_get_element_screenshot(self, driver, pages):
3541
pages.load("simpleTest.html")
3642
element = driver.find_element_by_id("multiline")
37-
import pdb; pdb.set_trace()
3843
result = base64.b64decode(element.screenshot_as_base64)
3944
assert imghdr.what('', result) == 'png'

0 commit comments

Comments
 (0)