Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update DuckDuckGo Selectors #45

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/tutorials/first_test.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ import net.serenitybdd.core.steps.UIInteractions;

public class SearchActions extends UIInteractions {
public void byKeyword(String keyword) {
$("#search_form_input_homepage").sendKeys(keyword);
$(".search__button").click();
$("#searchbox_input").sendKeys(keyword);
$("button[type='submit']").click();
}
}
```
Expand Down Expand Up @@ -188,7 +188,7 @@ However, there is one more step we can do. Serenity BDD is a living documentatio

We can control how Serenity reports each method in a `UIInteractions` class using the `@Step` annotation. When you place a `@Step` annotation on a `UIInteractions` method, this method will appear in the Serenity reports whenever it is called.

Let's see how it works. Update the `NaviagateActions` and `SearchActions` classes to include the `@Step` annotations like this:
Let's see how it works. Update the `NavigateActions` and `SearchActions` classes to include the `@Step` annotations like this:

```java
import net.serenitybdd.core.steps.UIInteractions;
Expand All @@ -208,8 +208,8 @@ import net.thucydides.core.annotations.Step;
public class SearchActions extends UIInteractions {
@Step("Search for '{0}'")
public void byKeyword(String keyword) {
$("#search_form_input_homepage").sendKeys(keyword);
$(".search__button").click();
$("#searchbox_input").sendKeys(keyword);
$("button[type='submit']").click();
}
}
```
Expand Down