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

Base implementation of handleSearch #5

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

Cartier32
Copy link

The base implementation of issue 4 is completed. I tested it through a scratch file that calls the method and prints out the array list that is returned then asserting if links match. This implementation only works for indeed.com at this point, was going to focus on more websites but most required sign in and since we are working on a sign in handler currently for indeed I thought it made sense. Tried to annotate with comments as much as possible so let me know if there is anything that is unclear. The logic of the method uses the WebDriver object from Selenium to scrape the given webpage with the given criteria. The WebDriver finds elements of the webpages through HTML, usually XPATH since it is pretty easy to single out elements with that syntax, then interacts with the elements to create the outgoing Array List. Once through all of the generated results the method returns the Array List full of the scraped links. Only issue I was having was the try catch blocks executing a slowly, would rather them not be there but I could not think of a better way to handle those cases.

#4

@frankjlin16 frankjlin16 linked an issue Oct 22, 2024 that may be closed by this pull request
src/main/search/handleSearch.java Outdated Show resolved Hide resolved
src/main/search/handleSearch.java Outdated Show resolved Hide resolved
@Cartier32
Copy link
Author

Changes resolved, commits squashed

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.

Create handle-search.java
2 participants