Skip to content

Add more timeout to mitigate ElementNotInteractableException#313

Merged
aleksei-burlakov merged 1 commit intoClusterLabs:masterfrom
Dawei-Pang:fix_team_11084_exceptions_ElementNotInteractableException_after_clicking
Apr 6, 2026
Merged

Add more timeout to mitigate ElementNotInteractableException#313
aleksei-burlakov merged 1 commit intoClusterLabs:masterfrom
Dawei-Pang:fix_team_11084_exceptions_ElementNotInteractableException_after_clicking

Conversation

@Dawei-Pang
Copy link
Copy Markdown
Contributor

Please allow me to add more timeout to mitigate randomly selenium.common.exceptions.StaleElementReferenceException or selenium.common.exceptions.ElementNotInteractableException.

Ticket: https://jira.suse.com/browse/TEAM-11084

VR:
https://openqa.suse.de/tests/21633024
https://openqa.suse.de/tests/21633020
https://openqa.suse.de/tests/21633012
https://openqa.suse.de/tests/21633007
https://openqa.suse.de/tests/21633004


# Third, rename the cool_primitive to hot_primitive
time.sleep(2) # wait the redirect finishes
time.sleep(BIG_TIMEOUT) # wait the redirect finishes
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not know much about Selenium in particular but I know that, generally speaking, web test framework has dedicated way to wait for page loading or redirection. Maybe in this or next PR we can explore one of these ExpectedConditions, urlMatches, urlContains, urlToBe

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's not too bad. BIG_TIMEOUT is 6: https://github.com/ClusterLabs/hawk/blob/master/e2e_test/hawk_test_driver.py#L20

But yes, generally is better to wait for a condition.

Copy link
Copy Markdown

@mpagot mpagot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Contributor

@alvarocarvajald alvarocarvajald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aleksei-burlakov aleksei-burlakov merged commit 788abab into ClusterLabs:master Apr 6, 2026
3 checks passed
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.

4 participants