Skip to content

Commit

Permalink
[py] still cannot select disabled options with Select class
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Oct 28, 2022
1 parent 2293f0c commit aa23847
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions py/test/selenium/webdriver/common/select_class_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,6 @@ def test_raises_exception_select_by_index_single_disabled(driver, pages):
sel.select_by_index(1)


@pytest.mark.xfail_firefox(reason='https://bugzilla.mozilla.org/show_bug.cgi?id=1429403')
@pytest.mark.xfail_remote
def test_select_disabled_by_index(driver, pages):
pages.load("formPage.html")
sel = Select(driver.find_element(By.NAME, disabledSelect["name"]))
selected = sel.first_selected_option
sel.select_by_index(1)
assert selected == sel.first_selected_option


def test_select_by_value_single(driver, pages):
pages.load("formPage.html")
for select in [singleSelectValues1]:
Expand All @@ -81,16 +71,6 @@ def test_raises_exception_select_by_value_single_disabled(driver, pages):
sel.select_by_value(disabledSingleSelect["values"][1].lower())


@pytest.mark.xfail_firefox(reason='https://bugzilla.mozilla.org/show_bug.cgi?id=1429403')
@pytest.mark.xfail_remote
def test_select_disabled_by_value(driver, pages):
pages.load("formPage.html")
sel = Select(driver.find_element(By.NAME, disabledSelect["name"]))
selected = sel.first_selected_option
sel.select_by_value("bar")
assert selected == sel.first_selected_option


def test_select_by_visible_text_single(driver, pages):
pages.load("formPage.html")

Expand All @@ -109,16 +89,6 @@ def test_raises_exception_select_by_text_single_disabled(driver, pages):
sel.select_by_visible_text(disabledSingleSelect["values"][1])


@pytest.mark.xfail_firefox(reason='https://bugzilla.mozilla.org/show_bug.cgi?id=1429403')
@pytest.mark.xfail_remote
def test_select_disabled_by_visible_text(driver, pages):
pages.load("formPage.html")
sel = Select(driver.find_element(By.NAME, disabledSelect["name"]))
selected = sel.first_selected_option
sel.select_by_visible_text("Bar")
assert selected == sel.first_selected_option


def test_select_by_index_multiple(driver, pages):
pages.load("formPage.html")

Expand Down

0 comments on commit aa23847

Please sign in to comment.