Skip to content

Update DuckDuckGo Selectors#45

Open
TurekBot wants to merge 3 commits intoserenity-bdd:masterfrom
TurekBot:patch-1
Open

Update DuckDuckGo Selectors#45
TurekBot wants to merge 3 commits intoserenity-bdd:masterfrom
TurekBot:patch-1

Conversation

@TurekBot
Copy link
Copy Markdown
Contributor

While trying to follow the "Your First Web Test", I noticed that it wasn't working for me.

I looked into it and found that those selectors don't exist anymore; I've replaced them here with ones that do.

However, even with the good selectors, the submit button stays disabled.

image

I figure this could be a security measure from DDG—or maybe just a bug.

To get around this, you can just send enter, I suppose
$("#searchbox_input").sendKeys(Keys.ENTER);

Looks like they changed this one, too.

However, something else is going on that's stopping this change from being sufficient. The report says that the button is staying disabled and so we can't click on it.
@TurekBot
Copy link
Copy Markdown
Contributor Author

Something I just noticed is that you say to use commands like "mvn verify", but those commands won't work for most people because most people don't have maven installed.

image

Two approaches come to mind:

  1. Use ./gradlew test instead since it has a wrapper and will automatically download gradle
  2. Change the template to use a maven wrapper; and then use ./mvnw

@TurekBot
Copy link
Copy Markdown
Contributor Author

Another thing you might consider is turning headless off for this first test. I'm not sure first-timers are better off flying blind. (Especially in the current situation where the first test instructions are broken).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant