@@ -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" )
196197def 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" )
205207def 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" )
279282def 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" )
287291def 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" )
300305def 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" )
307313def 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" )
390397def 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" )
399407def 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" )
408417def 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" )
418428def 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" )
428439def 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" )
435447def 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" )
442455def 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" )
450464def 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" )
522537def 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" )
529545def 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" )
536553def 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" )
543561def test_finding_multiple_elements_by_invalid_css_selector_should_throw (driver , pages ):
544562 pages .load ("xhtmlTest.html" )
545563 with pytest .raises (InvalidSelectorException ):
0 commit comments