-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Closed
Labels
B-atomsJavaScript chunks generated by Google closureJavaScript chunks generated by Google closureJ-staleApplied to issues that become stale, and eventually closed.Applied to issues that become stale, and eventually closed.
Description
Hi!
I'm not sure is current behavior expected or not, so I decided to file a ticket for selenium dev team. For some reason locating and interacting with an invisible element on the page is working for me. The element is presented in DOM but it's hidden by parent's {overflow: hidden}
css.
Meta -
OS:
Ubuntu
Selenium Version:
3.8.1
Browser:
Chrome
Browser Version:
63.0.3239.84
Expected Behavior -
id_displayed returns False and element is not clickable
Actual Behavior -
id_displayed returns True and element is not clickable
Steps to reproduce -
html/styles: https://jsfiddle.net/ck6utghr/
browser = webdriver.Remote(url, capabilities)
browser.get('test.html')
wait = WebDriverWait(browser, timeout=20)
wait.until(
EC.visibility_of_element_located((By.CSS_SELECTOR, '.target-link')),
)
link = browser.find_element_by_css_selector('.target-link')
link.click()
valignatev
Metadata
Metadata
Assignees
Labels
B-atomsJavaScript chunks generated by Google closureJavaScript chunks generated by Google closureJ-staleApplied to issues that become stale, and eventually closed.Applied to issues that become stale, and eventually closed.