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

Conversation

TurekBot
Copy link
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
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
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