Skip to content

fix: handle disabled buttons and add Italian UI language support - #14

Open
chrisdaloa wants to merge 1 commit into
shadowcopyrz:mainfrom
chrisdaloa:fix/italian-language-support-and-click-fix
Open

fix: handle disabled buttons and add Italian UI language support#14
chrisdaloa wants to merge 1 commit into
shadowcopyrz:mainfrom
chrisdaloa:fix/italian-language-support-and-click-fix

Conversation

@chrisdaloa

Copy link
Copy Markdown

Problem

Two related issues when running with an Italian-language ESET interface:

  1. ElementClickInterceptedException — the Continue button is found but has aria-disabled="true" / disabled at the moment of the click (the previous step hasn't finished enabling it yet). An overlay (div.css-we0usu) also intercepts the click in some page states.

  2. Italian interface not supported__press_button_with_text only matched exact English strings ('continue', 'finish for now'), so users whose ESET HOME interface is in Italian always hit the RuntimeError.

Changes

modules/EsetTools.py__press_button_with_text

  • Accepts a list of target strings as well as a single string.
  • Skips disabled buttons (disabled attribute or aria-disabled="true") and retries on the next iteration instead of raising immediately.
  • JS click fallback: if element.click() raises any exception (e.g. ElementClickInterceptedException from an overlay), falls back to driver.execute_script("arguments[0].click()", button).
  • All call sites updated to pass lists that include the Italian equivalents:
    • 'continue'['continue', 'continua']
    • 'finish for now'['finish for now', 'termina per ora', 'finisci per ora']

Testing

Verified on Chrome 149 with ESET HOME interface set to Italian — key generation completes without ElementClickInterceptedException or RuntimeError.

- Skip buttons with disabled/aria-disabled attributes before clicking,
  wait for them to become enabled instead of raising an exception
- Fall back to JS click (execute_script) when ElementClickInterceptedException
  is raised due to an overlay blocking the element
- Add Italian button text variants to support ESET interface in Italian:
  'continua' alongside 'continue', and 'termina per ora'/'finisci per ora'
  alongside 'finish for now'

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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