Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9baa940

Browse files
Merge branch '4-page-objects' into 5-playwright-tricks
2 parents 3056997 + 91e7ab1 commit 9baa940

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎tutorial/2-first-steps.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,13 @@ Here's the inspection panel for the search input element:
178178
Thankfully, this element has an ID.
179179
We can use the selector `#search_form_input_homepage` to uniquely identify this element.
180180

181+
***Warning:***
182+
DuckDuckGo frequently changes its page structure and performs A/B testing.
183+
The selectors presented in this tutorial may not work for you.
184+
Please investigate the page structure and use appropriate selectors.
185+
For example, you might need to use `[name="q"]` for the search input
186+
and `[aria-label="Search"]` for the search button.
187+
181188
To interact with elements with Playwright, we must use [locators](https://playwright.dev/python/docs/locators).
182189
The [Locator](https://playwright.dev/python/docs/next/api/class-locator) class
183190
takes in a selector and produces an object that can interact with the target element.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /