Skip to content

Commit 88dfd80

Browse files
committed

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

py/test/selenium/webdriver/common/clear_tests.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def test_writable_text_input_should_clear(driver, pages):
2828
assert "" == element.get_attribute("value")
2929

3030

31+
@pytest.mark.xfail_chrome(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")
3132
def test_text_input_should_not_clear_when_disabled(driver, pages):
3233
pages.load("readOnlyPage.html")
3334
element = driver.find_element(By.ID, "textInputNotEnabled")
@@ -50,6 +51,7 @@ def test_writable_text_area_should_clear(driver, pages):
5051
assert "" == element.get_attribute("value")
5152

5253

54+
@pytest.mark.xfail_chrome(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")
5355
def test_text_area_should_not_clear_when_disabled(driver, pages):
5456
pages.load("readOnlyPage.html")
5557
element = driver.find_element(By.ID, "textAreaNotEnabled")

py/test/selenium/webdriver/common/driver_element_finding_tests.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ def test_should_not_be_able_to_locate_by_tag_name_multiple_elements_that_do_not_
193193
@pytest.mark.xfail_firefox(reason="https://github.com/mozilla/geckodriver/issues/2007")
194194
@pytest.mark.xfail_remote(reason="https://github.com/mozilla/geckodriver/issues/2007")
195195
@pytest.mark.xfail_safari(reason="unlike chrome, safari raises NoSuchElementException")
196+
@pytest.mark.xfail_chrome(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")
196197
def test_finding_asingle_element_by_empty_tag_name_should_throw(driver, pages):
197198
pages.load("formPage.html")
198199
with pytest.raises(InvalidSelectorException):
@@ -202,6 +203,7 @@ def test_finding_asingle_element_by_empty_tag_name_should_throw(driver, pages):
202203
@pytest.mark.xfail_firefox(reason="https://github.com/mozilla/geckodriver/issues/2007")
203204
@pytest.mark.xfail_remote(reason="https://github.com/mozilla/geckodriver/issues/2007")
204205
@pytest.mark.xfail_safari(reason="unlike chrome, safari returns an empty list")
206+
@pytest.mark.xfail_chrome(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")
205207
def test_finding_multiple_elements_by_empty_tag_name_should_throw(driver, pages):
206208
pages.load("formPage.html")
207209
with pytest.raises(InvalidSelectorException):
@@ -276,6 +278,7 @@ def test_should_not_find_element_by_class_when_the_name_queried_is_shorter_than_
276278

277279

278280
@pytest.mark.xfail_safari(reason="unlike chrome, safari raises TimeoutException")
281+
@pytest.mark.xfail_chrome(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")
279282
def test_finding_asingle_element_by_empty_class_name_should_throw(driver, pages):
280283
pages.load("xhtmlTest.html")
281284
msg = r"\/errors#invalid-selector-exception"
@@ -284,6 +287,7 @@ def test_finding_asingle_element_by_empty_class_name_should_throw(driver, pages)
284287

285288

286289
@pytest.mark.xfail_safari(reason="unlike chrome, safari raises TimeoutException")
290+
@pytest.mark.xfail_chrome(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")
287291
def test_finding_multiple_elements_by_empty_class_name_should_throw(driver, pages):
288292
pages.load("xhtmlTest.html")
289293
with pytest.raises(InvalidSelectorException):
@@ -297,13 +301,15 @@ def test_finding_asingle_element_by_compound_class_name_should_throw(driver, pag
297301

298302

299303
@pytest.mark.xfail_safari(reason="unlike chrome, safari raises TimeoutException")
304+
@pytest.mark.xfail_chrome(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")
300305
def test_finding_asingle_element_by_invalid_class_name_should_throw(driver, pages):
301306
pages.load("xhtmlTest.html")
302307
with pytest.raises(InvalidSelectorException):
303308
driver.find_element(By.CLASS_NAME, "!@#$%^&*")
304309

305310

306311
@pytest.mark.xfail_safari(reason="unlike chrome, safari raises TimeoutException")
312+
@pytest.mark.xfail_chrome(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")
307313
def test_finding_multiple_elements_by_invalid_class_name_should_throw(driver, pages):
308314
pages.load("xhtmlTest.html")
309315
with pytest.raises(InvalidSelectorException):
@@ -387,6 +393,7 @@ def test_should_throw_an_exception_when_there_is_no_link_to_click(driver, pages)
387393

388394

389395
@pytest.mark.xfail_safari(reason="unlike chrome, safari raises TimeoutException")
396+
@pytest.mark.xfail_chrome(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")
390397
def test_should_throw_invalid_selector_exception_when_xpath_is_syntactically_invalid_in_driver_find_element(
391398
driver, pages
392399
):
@@ -396,6 +403,7 @@ def test_should_throw_invalid_selector_exception_when_xpath_is_syntactically_inv
396403

397404

398405
@pytest.mark.xfail_safari(reason="unlike chrome, safari raises TimeoutException")
406+
@pytest.mark.xfail_chrome(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")
399407
def test_should_throw_invalid_selector_exception_when_xpath_is_syntactically_invalid_in_driver_find_elements(
400408
driver, pages
401409
):
@@ -405,6 +413,7 @@ def test_should_throw_invalid_selector_exception_when_xpath_is_syntactically_inv
405413

406414

407415
@pytest.mark.xfail_safari(reason="unlike chrome, safari raises TimeoutException")
416+
@pytest.mark.xfail_chrome(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")
408417
def test_should_throw_invalid_selector_exception_when_xpath_is_syntactically_invalid_in_element_find_element(
409418
driver, pages
410419
):
@@ -415,6 +424,7 @@ def test_should_throw_invalid_selector_exception_when_xpath_is_syntactically_inv
415424

416425

417426
@pytest.mark.xfail_safari(reason="unlike chrome, safari raises TimeoutException")
427+
@pytest.mark.xfail_chrome(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")
418428
def test_should_throw_invalid_selector_exception_when_xpath_is_syntactically_invalid_in_element_find_elements(
419429
driver, pages
420430
):
@@ -425,20 +435,23 @@ def test_should_throw_invalid_selector_exception_when_xpath_is_syntactically_inv
425435

426436

427437
@pytest.mark.xfail_safari(reason="unlike chrome, safari raises TimeoutException")
438+
@pytest.mark.xfail_chrome(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")
428439
def test_should_throw_invalid_selector_exception_when_xpath_returns_wrong_type_in_driver_find_element(driver, pages):
429440
pages.load("formPage.html")
430441
with pytest.raises(InvalidSelectorException):
431442
driver.find_element(By.XPATH, "count(//input)")
432443

433444

434445
@pytest.mark.xfail_safari(reason="unlike chrome, safari raises TimeoutException")
446+
@pytest.mark.xfail_chrome(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")
435447
def test_should_throw_invalid_selector_exception_when_xpath_returns_wrong_type_in_driver_find_elements(driver, pages):
436448
pages.load("formPage.html")
437449
with pytest.raises(InvalidSelectorException):
438450
driver.find_elements(By.XPATH, "count(//input)")
439451

440452

441453
@pytest.mark.xfail_safari(reason="unlike chrome, safari raises TimeoutException")
454+
@pytest.mark.xfail_chrome(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")
442455
def test_should_throw_invalid_selector_exception_when_xpath_returns_wrong_type_in_element_find_element(driver, pages):
443456
pages.load("formPage.html")
444457
body = driver.find_element(By.TAG_NAME, "body")
@@ -447,6 +460,7 @@ def test_should_throw_invalid_selector_exception_when_xpath_returns_wrong_type_i
447460

448461

449462
@pytest.mark.xfail_safari(reason="unlike chrome, safari raises TimeoutException")
463+
@pytest.mark.xfail_chrome(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")
450464
def test_should_throw_invalid_selector_exception_when_xpath_returns_wrong_type_in_element_find_elements(driver, pages):
451465
pages.load("formPage.html")
452466
body = driver.find_element(By.TAG_NAME, "body")
@@ -519,27 +533,31 @@ def test_should_not_find_elements_by_css_selector_when_there_is_no_such_element(
519533

520534

521535
@pytest.mark.xfail_safari(reason="unlike chrome, safari raises TimeoutException")
536+
@pytest.mark.xfail_chrome(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")
522537
def test_finding_asingle_element_by_empty_css_selector_should_throw(driver, pages):
523538
pages.load("xhtmlTest.html")
524539
with pytest.raises(InvalidSelectorException):
525540
driver.find_element(By.CSS_SELECTOR, "")
526541

527542

528543
@pytest.mark.xfail_safari(reason="unlike chrome, safari raises TimeoutException")
544+
@pytest.mark.xfail_chrome(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")
529545
def test_finding_multiple_elements_by_empty_css_selector_should_throw(driver, pages):
530546
pages.load("xhtmlTest.html")
531547
with pytest.raises(InvalidSelectorException):
532548
driver.find_elements(By.CSS_SELECTOR, "")
533549

534550

535551
@pytest.mark.xfail_safari(reason="unlike chrome, safari raises TimeoutException")
552+
@pytest.mark.xfail_chrome(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")
536553
def test_finding_asingle_element_by_invalid_css_selector_should_throw(driver, pages):
537554
pages.load("xhtmlTest.html")
538555
with pytest.raises(InvalidSelectorException):
539556
driver.find_element(By.CSS_SELECTOR, "//a/b/c[@id='1']")
540557

541558

542559
@pytest.mark.xfail_safari(reason="unlike chrome, safari raises TimeoutException")
560+
@pytest.mark.xfail_chrome(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")
543561
def test_finding_multiple_elements_by_invalid_css_selector_should_throw(driver, pages):
544562
pages.load("xhtmlTest.html")
545563
with pytest.raises(InvalidSelectorException):

py/test/selenium/webdriver/common/webdriverwait_tests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def throw_sere(driver):
3333
raise StaleElementReferenceException("test")
3434

3535

36+
@pytest.mark.xfail_chrome(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")
3637
def test_should_fail_with_invalid_selector_exception(driver, pages):
3738
pages.load("dynamic.html")
3839
with pytest.raises(InvalidSelectorException):

0 commit comments

Comments
 (0)