Skip to content

Commit 6332f3b

Browse files
Added type annotation and locator calls
1 parent 5c63f72 commit 6332f3b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test_search.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
These tests cover DuckDuckGo searches.
33
"""
44

5-
65
from playwright.sync_api import Page
76

87

@@ -11,8 +10,8 @@ def test_basic_duckduckgo_search(page: Page) -> None:
1110
page.goto('https://www.duckduckgo.com')
1211

1312
# When the user searches for a phrase
14-
page.fill('#search_form_input_homepage', 'panda')
15-
page.click('#search_button_homepage')
13+
page.locator('#search_form_input_homepage').fill('panda')
14+
page.locator('#search_button_homepage').click()
1615

1716
# Then the search result query is the phrase
1817
# And the search result links pertain to the phrase

0 commit comments

Comments
 (0)