def test_right_clicks_an_element(self, session): if ismarionette(session): pytest.skip("selenium/geckodriver doesn't support right-click") session.visit("/with_js") session.find("css", "#click-test").right_click() assert session.find("css", "#has-been-right-clicked")
def test_allows_modifiers(self, session): if isfirefox(session) and not ismarionette(session): pytest.skip( "Firefox without Marionette/geckodriver doesn't support modified right-click" ) Keys = pytest.importorskip("selenium.webdriver.common.keys").Keys session.visit("/with_js") session.find("css", "#click-test").right_click(Keys.META) assert session.has_link("Has been meta right clicked")
def test_sends_special_characters(self, session): Keys = pytest.importorskip("selenium.webdriver.common.keys").Keys if ismarionette(session): pytest.skip( "selenium/geckodriver doesn't support some special characters") session.visit("/form") session.find("css", "#address1_city").send_keys("Ocean", Keys.SPACE, "sie", Keys.LEFT, "d") assert session.find("css", "#address1_city").value == "Ocean side"