https://github.com/morozgrafix/jpl-pathfinder
2 quick and dirty solutions to this challenge http://practicalsqa.net/selenium-challenge-reach-the-pathfinder/
https://github.com/morozgrafix/jpl-pathfinder
Last synced: about 1 month ago
JSON representation
2 quick and dirty solutions to this challenge http://practicalsqa.net/selenium-challenge-reach-the-pathfinder/
- Host: GitHub
- URL: https://github.com/morozgrafix/jpl-pathfinder
- Owner: morozgrafix
- Created: 2015-10-05T05:20:21.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-05T05:20:52.000Z (over 9 years ago)
- Last Synced: 2025-04-04T03:44:54.771Z (about 2 months ago)
- Language: Ruby
- Size: 105 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### JPL / Pathfinder Communication Link Challenge
My quick and dirty solution to this challenge: http://practicalsqa.net/selenium-challenge-reach-the-pathfinder/
Well actually 2 solutions that I quickly threw together earlier today.
#### Solution 1
There is an MD5 hash in the JS on the page that combination of 3 button presses is validated against. It's pretty straight forward to run through permutations of all of the combinations and compare resulting hash with hash that's on the page.To find the combination of buttons to press with that method do the following:
```
clone the repo
bundle install
ruby hash_buster.rb
```#### Solution 2
But I guess that wasn't really part of the challenge as it required to use Selenium to find the combination. I ended up using rspec, page-objects and watir-webdriverTo find the combination of buttons to press with that method do the following:
```
clone the repo
bundle install
rspec
```P.S. I didn't have patience to run through all 24360 permutations of buttons in the browser. I only used subset of those, but entire data set should work just fine.