File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -177,6 +177,7 @@ Append the following line to the test case:
177
177
178
178
Using Selenium WebDriver, we would need to locate the element and then send the interaction to it.
179
179
However, in Playwright, these two parts are combined into a single call.
180
+ Furthermore, Playwright waits for the target element to be visible and editable before it attempts to enter the text.
180
181
We are arbitrarily using the phrase ` 'panda' ` as our search phrase because, well, why not?
181
182
182
183
Let's handle the second part of the interaction: clicking the search button.
@@ -195,6 +196,7 @@ Append the following line to the test case:
195
196
```
196
197
197
198
Again, Playwright is nice and concise.
199
+ The ` click ` method waits for the target element to be ready to receive clicks, too.
198
200
199
201
Our test case should now look like this:
200
202
You can’t perform that action at this time.
0 commit comments