Skip to content

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
@Cartier32 Cartier32 force-pushed the Feature/4/handle-search branch from 12bc79b to 34b791b Compare October 22, 2024 06:00
@Cartier32
Copy link
Author

Changes resolved, commits squashed

@Cartier32 Cartier32 requested a review from frankjlin16 October 27, 2024 04:55
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

3 participants