Commit Graph

5 Commits

Author SHA1 Message Date
Nick Sweeting
6c695d0a42 more lint and hint fixes 2025-06-21 05:39:17 -07:00
Nick Sweeting
f85cdd98bc fix browsersession init in tests 2025-06-16 16:38:44 -07:00
Nick Sweeting
1d31cac481 fix tests 2025-06-16 16:36:06 -07:00
Nick Sweeting
ffea60ad79 lint fixes 2025-06-16 15:48:13 -07:00
claude[bot]
c16bfa4f65 Add comprehensive tests for find_file_upload_element_by_index method
This commit adds extensive test coverage for the file upload element finding
functionality in BrowserSession. Tests cover all codepaths including:

- Success cases: finding inputs on current node, descendants, siblings, ancestors  
- Parameter variations: max_height and max_descendant_depth limits
- Edge cases: missing indices, no inputs found, exception handling
- DOM structures: complex nesting, case sensitivity, attribute validation

The 17 test methods ensure robust validation of the enhanced DOM traversal
logic introduced in the file upload improvements.

Co-authored-by: Nick Sweeting <pirate@users.noreply.github.com>
2025-06-16 17:48:26 +00:00