Skip to content

Commit

Permalink
[py]: use f-strings in some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
symonk committed Oct 1, 2022
1 parent 9e03166 commit f4a8915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/test/selenium/webdriver/common/typing_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def test_all_printable_keys(driver, pages):
def test_arrow_keys_and_page_up_and_down(driver, pages):
pages.load("javascriptPage.html")
element = driver.find_element(by=By.ID, value="keyReporter")
element.send_keys("a{}b{}{}{}{}{}1".format(Keys.LEFT, Keys.RIGHT, Keys.UP, Keys.DOWN, Keys.PAGE_UP, Keys.PAGE_DOWN))
element.send_keys(f"a{Keys.LEFT}b{Keys.RIGHT}{Keys.UP}{Keys.DOWN}{Keys.PAGE_UP}{Keys.PAGE_DOWN}1")
assert element.get_attribute("value") == "ba1"


Expand Down

0 comments on commit f4a8915

Please sign in to comment.