Skip to content

Commit f4a8915

Browse files
committed
[py]: use f-strings in some tests
1 parent 9e03166 commit f4a8915

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/test/selenium/webdriver/common/typing_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def test_all_printable_keys(driver, pages):
243243
def test_arrow_keys_and_page_up_and_down(driver, pages):
244244
pages.load("javascriptPage.html")
245245
element = driver.find_element(by=By.ID, value="keyReporter")
246-
element.send_keys("a{}b{}{}{}{}{}1".format(Keys.LEFT, Keys.RIGHT, Keys.UP, Keys.DOWN, Keys.PAGE_UP, Keys.PAGE_DOWN))
246+
element.send_keys(f"a{Keys.LEFT}b{Keys.RIGHT}{Keys.UP}{Keys.DOWN}{Keys.PAGE_UP}{Keys.PAGE_DOWN}1")
247247
assert element.get_attribute("value") == "ba1"
248248

249249

0 commit comments

Comments
 (0)