Skip to content

fix: Re-find speed test table to prevent stale element error#10

Merged
GoWithitRoger merged 1 commit intomainfrom
fix-stale-element-reference
Aug 11, 2025
Merged

fix: Re-find speed test table to prevent stale element error#10
GoWithitRoger merged 1 commit intomainfrom
fix-stale-element-reference

Conversation

@GoWithitRoger
Copy link
Copy Markdown
Owner

The script would occasionally fail with a "stale element reference" error when trying to parse the speed test results. This was caused by the webpage updating the results table a moment after it first became visible.

This change fixes the issue by re-finding the table element immediately before parsing its contents, ensuring the reference is always fresh.

The associated test test_speed_test_task_success was also updated to reflect the new find_element call in the code.

The script would occasionally fail with a "stale element reference"
error when trying to parse the speed test results. This was caused by
the webpage updating the results table a moment after it first became
visible.

This change fixes the issue by re-finding the table element
immediately before parsing its contents, ensuring the reference is
always fresh.

The associated test `test_speed_test_task_success` was also updated to
reflect the new `find_element` call in the code.
@GoWithitRoger GoWithitRoger merged commit bc37c97 into main Aug 11, 2025
1 check passed
@GoWithitRoger GoWithitRoger deleted the fix-stale-element-reference branch August 11, 2025 17:32
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