Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Popover attribute is not handled when determining visibility #2755

Closed
toy opened this issue Mar 15, 2024 · 2 comments
Closed

Popover attribute is not handled when determining visibility #2755

toy opened this issue Mar 15, 2024 · 2 comments

Comments

@toy
Copy link

toy commented Mar 15, 2024

Meta

Capybara Version: 3.40.0
Driver Information (and browser if relevant): selenium-webdriver 4.18.1 with Chrome 121.0.6167.85

Expected Behavior

I was testing interaction with buttons that are in an element with popover attribute which is inside an element with overflow hidden. After making the popover visible, it is still not possible to interact with the button despite it being visible. isDisplayed doesn't have anything related to popover attribute. Selenium apparently also doesn't handle popover attribute, so even if isDisplayed is modified to handle it, trying to click the button gives Selenium::WebDriver::Error::ElementNotInteractableError.

HTML to show the problem:

<div style="position: relative; overflow: hidden;">
  <button popovertarget="show">Show popover</button>
  <button style="position: absolute; top: 30px;">Can not be clicked</button>
  <button popover id="show" style="position: absolute; top: 60px;">Should be clickable</button>
</div>

After clicking the «Show popover»:
image

It should not be possible to click the «Can not be clicked» button, but it should be possible to click the «Should be clickable» button.

Actual Behavior

It is not possible to click the «Should be clickable» button.

@toy
Copy link
Author

toy commented Mar 15, 2024

Maybe the way to handle popover attribute: ece5af4

@twalpole
Copy link
Member

Visibility handled via #2759

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

No branches or pull requests

2 participants